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.
@Lolmewn
Okay, working now. Though... when typing /rules it says Incorrect usage, please use /rules <page> and lists the pages. I can fix this by disabling the usePagination, but then everything is merged into one.
@Lolmewn
Okay. Let me test with 8 :P
@ViscousSummer88
Good question, I'm not even sure myself. It might cap it to 8 rules per page (at least, that's what it does when converting the old format to the new).
@Lolmewn
I'm not able to ever get the builtin rules option to work... Is there a limit to the amount of rules you can have per page?
@marthy99
Check your logs. Probably misconfigured.
uhm i cant chance the rules i wanna let the read :-( it still says the same rules you did into it
now i cant read the rules it says
inorrect usage please use /rules <page> avilable pages
if i do that i get another error
no page 1
@HeyAwesomePeople
I did? :o guess I failed at copying it correctly. Fixing!
In your code, you have if(TpOnAccept=true), then tp. BUT. It's TpAfterAccept in the config. This causes it to always TP. Please fix.
@Lolmewn
If you could add that support it would be greatly appreciated! :D
@ViscousSummer88
Not right now, but I can add that :)
Is there a way for this to use the essentials rules.txt?
Video Tutorial on the Plugin
https://www.youtube.com/watch?v=NJDSxQHj5nY
Credits: (AbsintoJ/AcceptRules)
@LHammonds
Oh woops, in the code it checks for 'TpOnAccept' instead of 'TpAfterAccept'. It will only teleport if the world exists and x, y and z are not 0. If you use the latest development build, you'll have the fixed version.
I am now using AcceptRules 2.1 on my CraftBukkit 1.4.6-R1.0 server and is working like a champ. The only thing acting funny is the "TpAfterAccept" setting...which even if set to false, still teleports the player after accepting the rules.
I'll share my updated rules and config files here in case anyone else would like to use them.
plugins\AcceptRules\rules.yml
plugins/AcceptRules/config.yml
Thanks,
LHammonds
@FreeServer
Could you try it with %PLAYER% instead?
I'm having some trouble with this plugin in regards to running a command upon a player accepting the rules. My goal is to have the command ' /perms player setgroup %player% Newbie ' run upon a player accepting the rules. Could you post an example config with this command keyed in, because I think I'm messing up the formatting. Thanks in advance!
@LHammonds
Ah yes. I took your rules file and used it for testing, fixed it now
@Lolmewn
OK so starting using a fresh config/rules seems to work fine. Still kept my original database of users too.
Only one thing, the console commands still don't work properly. They don't seem to run at all even though I have put them in the config file.
Oh, forgot to include a copy of my 2.0.7 files:
config.yml
rules.txt