WorldRules
WorldRules
Description
This plugin was created for my public server and is being released because it seems like there is no other way to do this. Essentially it will add a /rules command that is specific to the world the player is currently in allowing you to define rules that are only effective in a specific world. The config file allows you to defined global rules (shown in all worlds), world specific rules and set if you want the rules to be shown when a player enters a world or not.
Bug Reports / Suggestions
If you find a bug, encounter a problem or have a suggestion, please fill out a ticket via the Tickets link above. I do not have the time to read through the comments section, any comment that fits the previous three categories will be ignored.
Commands
/rules - This command shows the rules to the player, they must have the permission worldrules.rules.show which will default to true for all players.
/worldrules reload - This command will reload the rules from the config file, it requires the permission worldrules.rules.reload which defaults to ops only.
Config File
The config file will be generated on the first run of the server with the plugin installed, it is fairly self explanatory and will look a bit like this
settings: rules-on-enter: true header-colour: DARK_GREEN rule-colour: GREEN global-rules: - Don't be evil world-rules: world: - Don't do bad things world_nether: - Don't break blaze spawners
The world-rules setting contains a section for each world on the server, under each of these sections you can add rules that only apply to that world. Leaving a section blanks means that only the global-rules will apply. The global-rules section contains a list of rules that will be shown in all of the worlds on the server. Finally the rules-on-enter setting controls whether the rules should be shown when a player enters a world or not and the two colour settings allow you to change the colours used in the rules message.
Contributing
Contributions to the project are very much welcome, if you have a feature that you want implemented and know a nice way to do it then consider forking the repo and submitting a pull request. These will be accepted as long as the following simple guidelines are followed.
- Do not edit the structure of the pom.xml file, feel free to add a dependency if you need it but the formatting and structure should not be changed.
- If you are exposing a new API method, add a JavaDoc comment to it, but don't over-comment internal code.
- Follow the existing code style, don't antagonise over every space though !
All dependencies that are used are now available from a public Maven repo, so you don't have to worry about building several other projects just to add a simple change any more.
Source Code
Dev Builds
Changes Since Last Release
Download
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
http://bukkit.jacekk.co.uk:8000/job/WorldRules/
@Jahonk
What's wrong with green ! More seriously, sure I'll add that.
Is it possible to change the colours of the rules?
@deleted_8887263
It should do, not that I have tested it but if Essentials gives up it's commands like it says it does then there is no reason that they way I registered the command would cause any problems.
one more questions, and thanks for the previous reply! Does this plugin work well with essentials, i mostly ask this because i wish for this plugin to take priority with the /rules command rather than essentials /rules feature. I know essentials is all cool about other plugins taking priority but still i would like to know for certain.
@deleted_8887263
It does :) It's so simple that it should never need an update really. I should update the version number :P
ok i admit i havent tried the plugin yet but does it work well with 1.3.1 bukkit?
@bobbysmithyy
Did you even try it ?
Update please
I love the idea and concept, nice plugin!
@M1N3CR4FTG0D
:D Thanks.
Wow I just downloaded InfinitePlots and then found this looking for rule plugins that way I can give certain building Limits on my Major Build world and not on every world I have :D Your plugins are very useful!
@Holty96
File a ticket.
It would be good to have a feature to disable the worldrules on server join and only have them come up when you move between worlds or even better you could extend the plugin to cover world welcome messages which is what im looking for!
Thanks
@wide_load
Done
@deleted_7536780
I assumed everyone would have some global rules, but I can do that yes.
Can you please file a ticket for this though ?
Can we please have it so if a world is not specified in config it doesn not show "World Rules;" when you join that world... e.g