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
Will test it now and because the person below this post seems to be having problems I'm going to try a complete fresh install of the plugin for now. Will let you know soon how it went.
Just installed 2.1.
The automated rules conversion didn't go so swell. Trying to update manually but I don't know what format to use. Please post an example of a multi-page "rules.yml" file. I restored the rules.txt file and disabled pagination in the config but /rules still expects pages to be entered.
I also noticed the config file did not automatically update so I deleted the file, let it create a new one so I'd get the new settings and then restored my changes (while the server was offline) to the new file. One of the settings I use is "TpAfterAccept: false" but it still teleports them after accepting the rules.
Workaround: Restoring 2.0.7
Environment
@groveham
"Next week" - more like right now. v2.1 released!
@groveham
Probably somewhere this week. I added support for multiple pages, but it needs more testing.
When will the new version come out to fix the console commands in the config so they work? Just wondering if you have an ETA because I've seen others with the same problem.
@Willehnz
Yeah, exactly Glad you fixed it.
Do i need a permissions node to read the rules?
Just tested it by typing /rules and it said i didn't have permission?
Edit: fixed, was a clash with commandbook
@MCRocks999
LoL @ you and McProHosting. Feature #5 is the blocking of all commands other than /rules and /acceptrules (major desired feature of this plugin!!!). If McProHosting told you it is a virus, you need to find another hosting company because they are not smart enough to host your server. A "virus" is malicious code that "replicates" itself. There is nothing malicious here and YOU downloaded it and installed it...however, you failed to read the description or how to configure it. You need to re-think how you go about adding plugins to your server to include reading the available documentation and configuration files.
LHammonds
@MCRocks999
Features says: Block commands, except for /rules and /acceptrules of course, until player accepts the rules (can be turned on/off in config)
Read first then complain....
@MCRocks999
But... that's a feature O.o Disable it in the config, lol?
A virus, hah!
This plugin is a virus!!! It screwed up our server! We couldn't even do any commands!!! And even McProHosting say its a virus!
Anyone got an example config for it running a manuadd %player% builder once the player has accepted the rules?
I can't get it to promote the player. :/
@GoopyComet
Should already be fixed in 2.0.6. Remember that the rewrite is still only in Beta!
is there a reason why any time I have to restart my server to update bukit or another plugin everyone has to reaccept the rules... a lot of people are really annoyed they have to keep accepting them when they have already done so.. I checked user.dat and there names are still there so I don't understand.. can you please fix this
Youtube Video: http://youtu.be/19FdX1b2ZKQ If you want to see it in action!
@js440
Set command blocking to false in the config.
This plugin prevents me from being able to use StaffProtect because when I try to use the cmd /login password to enable my account, I am being told to accept the rules. The problem with this is I am unable to accept the rules unless I can enable my account by doing /login password.
Can you please fix this problem?
@LHammonds
How stupid of me, forgetting line breaks. Fixed in 2.0.6
Ah, I noticed the same thing.
Looking inside the users.dat, I see the following:
I wonder if the read function expects the name to be on each line like the following:
This might be an issue for Linux servers only. I will investigate.
EDIT #1: After I edited users.dat to look like the above 3 lines, it no longer asked for me to re-accept the rules after a reboot.
I then put it back the way it was and it asked for me to accept the rules again so that definitely means each name must be on a separate line.
I suspect that the write process (possibly just the initial write) does not add the correct EOL code for Linux...which is different than Windows.
EDIT #2: Ah, you already uploaded version 2.0.5 which addresses this. Awesome! Don't beat yourself up over bugs. They happen. What matters is that they are getting found and you are squashing them. Thanks!
LHammonds
I have notice that this file was created. But it didn't solve the problem. Not on disconnection, but on each reboot, it still ask me to accept the rules. I have reinstall it many times, i try on spigot, craftbukkit, and still the same prob.