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.
so any ideas why it could be posting the notice twice?
That worked!!! now everything is working great except for when a person joins for the first time, they get the notice to read the rules 2 times in a row... here is a screen shot: http://dl.dropbox.com/u/7495644/acceptrules.png
it shows the data for "InformMsg:" twice in a row, one after the other....its not really a big deal, but just checking to see if it can be stopped and only showed once... let me know what you think.... my config file is default still
@RigiTv
ok i will try that now... will post more info about the second notice once I get this part working... thanks again for your help :D
@c0dejunkie
Are you sure you used it like this: '&4Text' I suggest you to delete the previous config file and start up the server, so it will generate a new one with a sample coloring! I dont get double notifications so i dont know what is the problem there!
also with this version and the last, when I first join the server I get the notice to read the rules 2 times in a row? is there a reason it does this? or is it because I am OP?
ok, so that got rid of the error but the text is still white.... it should be green and red with the codes that I used..... any ideas?
@RigiTv
thanks for the quick reply... will try right now and let you know!! :)
@c0dejunkie
Put single quotations arround it like this: '&aYou have....'
when I try to use color codes in the config file, I get errors when it hits the first "&4", here is a copy and paste of the first few lines:
AcceptedMsg: &aYou have succesfully accepted the rules! Have fun! MustReadRules: &4You must read the rules in order to accept them! Type /rules AcceptedAllreadyMsg: &bYou have already accepted the rules!
here is the error:
[SEVERE] Config file plugins/AcceptRules/config.yml isn't valid! found duplicate anchor 4You; first occurence in "<string>", line 2, column 16: MustReadRules: &4You must read the rules in ord ... ^ second occurence in "<string>", line 4, column 15: CantBuildMsg: &4You must accept rules before y ... ^
what did i do wrong? it doesn't seem to mind the "&a" in the first line, but errors on the second line at "&4" ..... Should i have the data in quotes like this?:
AcceptedMsg: "&aYou have succesfully accepted the rules! Have fun!" MustReadRules: "&4You must read the rules in order to accept them! Type /rules" AcceptedAllreadyMsg: "&bYou have already accepted the rules!"
thanks for any help!!
@RigiTv
Thanks for the update!!!
@raoulster
You're welcome!
@zyxep
@c0dejunkie
added colorcode support to the config file, but not to the rules yet! In the next update! :)
I'm with zyxep , having the ability to change the color of the rules is another thing that I would love for this plugin to have!!!!
a suggestion.
add color to the rules.
Thanks man, this is great =)
@c0dejunkie
Very soon!
any idea when we can expect an update to the latest RB? thanks
this should help keep griefers off my server so now if they disobey the rules theres no excuse thanks.
@JoeCarter14
@c0dejunkie
Yeah thats added to my to do list!
@angelofdev
Hmm, good idea, not sure if its possibile, but lets try, its easier than using third party plugin.
@JoeCarter14
@c0dejunkie
That's a great idea.
@RigiTv
An idea on how c0dejunkie's suggestion could work is. The plugin could run a specified command in the config. For instance with PEX you can get it to use: "/pex user [name] group set [rank]"
I TOTALLY agree with JoeCarter14!!! I would love to have the ability to let users change from a newbies group to default after they type /acceptrules!!! this option would make this plugin even better then it already is!!!
Thanks for your hard work!!