AcceptRules
AcceptRules - Made by rigor789, recoded by Lolmewn
What does this plugin do?
This plugin makes sure all players have accepted the rules before they can start playing.
The plugin is highly customizable, you can change everything around to your own liking!
Missing something? Make a ticket!
Other features
- Teleporting the player after accepting the rules (can be turned on/off in config)
- Teleporting the player on first spawn (can be turned on/off in config)
- Remembers if the user has accepted the rules
- Block building/breaking of blocks until player accepts the rules (can be turned on/off in config)
- Block commands, except for /rules and /acceptrules of course, until player accepts the rules (can be turned on/off in config)
- Forces the player to read the rules! Can't accept them before reading them!
- Send messages to OP's or players with permission node when someone accepts the rules!
- Let the player or console perform commands upon acceptation of the rules! Use %PLAYER% to add the playername to the command.
- Multiple pages of rules, you have to read all of them before you can do /acceptrules!
How to install
Installation of the plugin is dead simple. Simply download the plugin and drag it into your 'plugins' folder in the root directory of your server. Just like any other plugin!
Configuration
For a how-to on doing your configuration,click here!
Commands and Permissions
All permission nodes default to OP
Command | Permission | Description |
---|---|---|
/rules | Lets the user read the rules of the server. You can specify what rules will be shown in the /plugins/AcceptRules/rules.yml file | |
/acceptrules | Accept the rules. The /rules command must be run prior to this command | |
/acceptrules settp | acceptrules.settp | This command sets the spawning point players are teleported to when they accept the rules, and this function is enabled in the config |
/acceptrules setspawn | acceptrules.setspawn | This command sets the spawning point for players joining for the first time, if this function is enabled in the config |
/acceptrules reload | acceptrules.reload | Reloads the rules and users files |
acceptrules.notifyonaccept | When a player accepts the rules, all users with this permission node will be sent a message, telling the user that the rules were accepted by that player | |
/acceptrules player <player> | acceptrules.acceptForOthers | Accepts the rules for player <player>, as requested by ticket #14 |
/acceptrules reset <player/all> | acceptrules.reset | User has to re-read and accept the rules. Use all if you want everyone to re-accept the rules |
Multi-page setup
#This is page one 1: - "&2Rule one" - "&2Rule two" - "&2Rule three" #page two! 2: - "&2Rule four" - "&2Rule five" ...etc
Metrics
This plugin utilises a plugin metrics system, which means that the following information is collected and sent to bstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
If you wish to disable this feature (/me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/bStats/
Auto-updater
This plugin has a built-in auto-updater, which connects to BukkitDev to check for updates. If you, for some reason, wish to disable this process, you can do so by setting 'update' to false in the plugins' settings file.
Changelog
You can find the changelog over at our changelog page.
hi, I was wondering if you could add the ability to change the players permissions group when they accept the rules? It would help greatly.
Hi, i have tried to install this as it seems it would help my server keep out some griefers. But im having a issue with the /rules command. i have Essentials installed and the two rules commands are causing issues. the built in rules command for your script doesnt give pages for the rules so if you have more then 14 rules the first 8 or so are cut off and then you get the last 10-15. so i tried to disable the rules command from your script and just use the Essentials one but once your script is installed the Essentials /rules command does not work still. but when i try the /erules the Essentials rules show. not sure if this is of any help to you but might need to add a couple things to the script config wise to make it so we can make it work with other scripts much easyer. sorry, new to posting here just thought i would post some thoughts as i have been trying out lots of mods here and im thankfull for all you dev guys hard work. its awesome!
@RigiTv
Could you possibly make the RulesCmd and CommandNeededToAcceptRules (example) two separate properties? It would be wonderful.
@adrianthewriter
Actually the RulesCmd is the "keyword" you have to enter before you can accept the rules, but ill change it so it'll be the command for the built in rules manager.... Also ill add ability to change the accept command.
I'm enjoying this plugin so far. It is the simplest plugin similar to this that I've seen, and the only one I saw that doesn't require a permissions plugin (I'm probably wrong about this...but this plugin makes it obvious in the description).
I haven't been able to edit the "RulesCmd" option in the config, though. I really want to be able to have the command be /info instead, since I use this plugin to list more information about the server than rules (I run a fairly small server, so not many rules are needed). However, I do want new players to actually read that information before they go off into the world, which this plugin works great for.
As a side note, It would also be amazing if we could have a "AcceptCmd" option in the config as well.
I am using v1.4 on CB 1.1-R3
@angelofdev
Omg, sorry for that, forgot to include plugin.yml... Sooorrry!
EDIT: Uploaded the correct file, waiting for aprooval! Sorry, my fault!
I just updated to v1.4 and I'm receiving the following error. I love this plugin keep up the great work.
@bigscary
maybe you should post this as a ticket? I think the "keyword" thing is a good idea! Please create a ticket! :P Then i can remember more easily... lol sorry my brain is kind of full of school sht xP
I understand your goal is for players to read and accept a ruleset. But players will treat this just like EULA in software - they'll type /acceptrules just so they can play, without reading and without bothering to follow any rules they don't think are important or fair.
If you really want players to read your rules, then you have to do the "secret word embedded in the rules" thing. Of course this still doesn't mean they will follow the rules, but it makes following the rules much more likely, because someone who's patient enough to read and discover the secret word really wants to play on your server, and won't want to throw away all that invested time by getting banned.
The best way to ensure rules are followed is to install plugins which make it impossible to break most of the rules, and then add very few, very short signs which describe the very few remaining rules that you can't enforce with code.
Example: "Get along with others or suffer a ban."
Add the above sign to your world near the spawn, then install GriefPrevention. Now you can expect players to actually act right. :)
@RigiTv
I'm Using Java 6 update 29, which is just one update off from the latest. Java 7 is not yet a recommended release. *shrugs* Oh well at least you were able to pinpoint the cause and bring about a resolution. Kudos. This is still one of the best rules acceptance plugins I've found, and when you added the ability to add the tp location for spawn jailing... awesome. I'm just glad you decided to update after all.
If you have problems/suggestions please use the ticket system! Its I easier to track... Thanks :)
Can you release source code, or could you add because I believe you have to type /rules then /acceptrules , could you make it because I have a room where you first spawn to tell you the rules then could you make it so that when you get to the end of the room it says on a sign something like, if you have understood all of the rules type /acceptrules Thanks.
Can you add support as to when some one try to talk, they are unable to until they accept the rules?
@RigiTv
Thanks!
Also, for the multi argumented commands, I have tried the following ways:
And none of them worked. I will let you know if they work in 1.1
PS: Check ur PM's
@Ferkswe
not yet! Maybe!
@RockerMan92
@Ferkswe
@Smiley43210
Fixed in v1.1!
@Smiley43210
It should work with multi argumented commands, but if not ill try to fix that, but at the moment i cant test my plugins :/ my pc sux, so i cant even run minecraft now lol, but im developing wierd right? :P
Also, with AcceptRules 1.0 and bukkit 1.1 my users are experiencing a glitch where they already accepted the rules, but when they use a command, it tells them to accept the rules. When they do /acceptrules, it says You have already accepted the rules! Please fix this glitch. I dont think it was there in the pervious version.
Edit: oops, didnt see that RockerMan92 already posted about it. Sorry!
@RockerMan92
Same here.
Love your plugin! However, in the config file, for the RulesCmd key, if I put a command that has args in it (ex. /rules 2) it doesn't register that they read the rules, even after they use /rules 2 (rules page 2), when they do /acceptrules, it says they didn't read the rules. Can you add support for multi word commands? Thanks!
Hi, users are accepting the rules but it still won't let them use a command or break blocks!?
Any help is appreciated :)
Would it be possible to get it to add a player to permissions once they accept the rules?