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.
@Bras
Fixed in 2.6, which is awaiting approval.
@Luisthegeek
Please create a ticket with server logs and plugin config files.
I installed the game and it works fine. The only problem is that each time the server restarts or I /reload a different plugin... everyone has to accept the rules again.
Is there a way to fix it?
Just installed this plugin and it worked for me as op when I first set it up but it is not notifying the players and now when anyone, even me types /rules, nothing comes up...
@Ajaxan
Please create a ticket for feature suggestions or they'll be lost in the sea of comments ;)
@wslauson
@Daxmau5
@NevendyND
@Jrod2359
Fixed in latest release, which is awaiting approval now. You can also find it on my CI, if you want to.
Hay, I dont know if this is the right place but i have a problem all of the sudden with my acceptrules not saving or somthing when I reload or restart the server it makes you accept the rules again. Help?
Just a thought. Perhaps add a password protect. Players must type in the right password before they can do anything. It is an alternate form of the "accept button." Basically Admin/OPs could bury the password in the rules which actually forces players to read them instead of just accepting them. Sounded like a cool idea so I'd thought I'd share!
@Lolmewn
i have the same problem as @Daxmau5 and @Monezombie pls help :/
and i think they plugin resett op rights.
i have test it and my testacc have no op after restart..
@wslauson
@Daxmau5
Well, there we go. Didn't think of that, actually. I'll just throw in a config option or something that converts user data. For now, you can create a file named like that and it'll work.
@Lolmewn
No users_converted.dat file.
I didn't upgrade from the previous version. I just got the newest craftbukkit and newest acceptrules and ran it.
@Lolmewn
Running v2.5, no users_converted.dat file in the AcceptRules folder.
@Daxmau5
@Monezombie
Does a 'users_converted.dat' file exist in the AcceptRules folder?
@Daxmau5
Everything is fine with 1.7.9-R0.1 #3084 and V2.4 Thanks Daxmau5 :)
@Daxmau5
Interesting... I'm running it on my test server too and I've restarted that a thousand times, but never had to re-accept the rules. I'll see if I can find anything in the code though.
@Lolmewn
Online. Don't see any errors in console.
You start the server > accept the rules > restart > nothing (good) > restart > needs to accept the rules again.
@Daxmau5
Online/offline mode servers? UUID system works differently on both.
@Lolmewn
I have the same problem as @Monezombie. After some restarts it wants a reaccept an after some it doesn't. I'm running 1.7.9-R0.2 #3092 and V2.5.
Did not have this problem with 1.7.9-R0.1 #3084 and V2.4 Haven't tried going back to R0.1 or V2.4 though.
@Monezombie
What craftbukkit are you running? The new version stores the UUID's, the old stores the playernames.
@Lolmewn
nope :/ , i decided to try with v2.4 but it doe the same thing except this time i need to accept the rule after 2 login, i think the plugin dont save the name of player who accepted the rule
@Monezombie
Errors in console?