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.
When someone joins the server for the first time I get this error.
31.03 11:03:32 [Server] INFO Caused by: java.lang.NullPointerException 31.03 11:03:32 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 31.03 11:03:32 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) 31.03 11:03:32 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) 31.03 11:03:32 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61) 31.03 11:03:32 [Server] INFO at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:41) 31.03 11:03:32 [Server] INFO at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129) 31.03 11:03:32 [Server] INFO at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132) 31.03 11:03:32 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) 31.03 11:03:32 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 31.03 11:03:32 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) 31.03 11:03:32 [Server] INFO org.bukkit.event.EventException 31.03 11:03:32 [Server] SEVERE Could not pass event PlayerJoinEvent to AcceptRules
Running CraftBukkit 1.2.4-R1.0.
Allright thanks :) I think I'll just use this plugin :)
@Florebor
Well, it informs them when they join the server... anyways i could add a configurable task, which will inform them every x seconds... For now i suggest you use signs, update comes when it will be needed (broken)
So players can walk around freely until they accept the rules? Does this plugin show them somehow how they should read the rules or remind them they should? Or should I do this with signs etc? (which wouldnt be much of a problem though)
can u make a command to see if a player has accepted rules like /acceptrules check namehere. i made a ticket
Thanks @c0dejunkie one last question does any one know if it works well with mutivirse had probs in the past
@thorincumming
works fine for me with the all 1.2.3 versions right up to the latest dev build.... i am on dev build 2083 and its working great....
Will this work for 1.2.3 r2? \
@c0dejunkie
Yeah, the multipage rules is added to my ToDo list... Until then please be patient, working on a huge project which is way more important cus i get some money xP
I have just updated the rules on my server and I have ran into a problem... After my list of rules which I only have 5, I have a few things listed to tell ppl how to accept the rules and what not, but my problem is ppl are only able to view the last rule and the stuff underneath. is there any way to have pages or chapters like the essentials plugin has? this way ppl will be able to read all the rules and the info afterwards, my rules.txt files is only 31 lines long but I think it is only showing the last 14 or so lines..... Thank you very much for any help
@Dr_Proffesor
Simply type &+a color code and then your text: ex.: &aHello &bThere!
But if you are talking about the rules.txt, then its not possibile yet!
@REALDrummer
The rules.txt doesent support colorcodes (yet) So it will be added soon!
how do u do colors?
This is a very nice plugin. I like it. I was having a lot of trouble finding a plugin that allows users to type "/rules" to see the rules and making them accept the rules is a nice bonus. However, I do have one question: how do you color the "/rules" page? I customized the output from the "/rules" command with the same color coding as in the conflg.yml file ("&7" and such). However, in the "/rules" output, it outputs the color coding as regular text and makes the entire block of text light green (color "a"). I can't figure out how to change the output colors in the config.yml or in the rules.txt. An example rules.txt file would help. Thank you.
@RigiTv With many plugins, including this one, if you reload the plugin without stopping the server, it will display messages in duplicate. If this is the problem, it will also display in triplicate if you reload without stopping twice, in quadruplicate (if that's a word) if you reload without stopping three times, etc. To fix it, just do a full server restart.
EDIT: Sorry. This reply was supposed to be to c0dejunkie concerning his question about duplicate messaging.
@sarpisko
You're welcome! :)
Thanks for R6 update :)
@Troublethecat
Yeah sure, soon! Busy at the moment, but as soon as i get some time i'll update it!
Is an update for R6 coming? I need this plugin for my server soon. It's the last one I'm missing to update. :/
@c0dejunkie
i have no clue... i dont have the problem, maybe it conflicts with other plugin? i dont think so btw...