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.
hello i have been trying to get this plugin to promote Guests to Member on /acceptrules
but this is not working...
here is a screenshot of the config file i have setup..
https://i.gyazo.com/07b1d5453c3b542ed8f097ccb0b7c729.png
In reply to Forge_User_62619679:
What happens instead? Does the plugin start correctly, are there errors?
Hey, if someone new joins the server and has the rank "guest" and accept the rules, can he automatically be promoted to another rank?
In reply to Forge_User_10980887:
one would assume you would use command to upgrade the user to the wanted rank here in the config file
onAccept:
commands: []
consoleCommands:
- command1
this is also already stated in the pages config instructions as below
Hi Mate, GREAT Plugin, i know its outdated up as someone new to server building find this to be the best yet, love the fact you can tp on join and then tp to spawn after accepted so your not clogging up the spawn area, i do have 1 small problem, i am on Paper 1.14.1 and its still working just getting this every now and then on the server window, could you by any chance fix this thanks.
[18:14:11 WARN]: [AcceptRules] Plugin AcceptRules v2.7-53 generated an exception while executing task 4
java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
at org.mcstats.Metrics.postPlugin(Metrics.java:335) ~[?:?]
at org.mcstats.Metrics.access$400(Metrics.java:57) ~[?:?]
at org.mcstats.Metrics$1.run(Metrics.java:223) ~[?:?]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.14.1.jar:git-Paper-49]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.14.1.jar:git-Paper-49]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.14.1.jar:git-Paper-49]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_211]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_211]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
In reply to Forge_User_69791031:
I've just uploaded an update that fixes this issue, should be online soon!
In reply to Lolmewn:
Thank you very much defo 100% the best rules accept plugin i could find, and still works in 1.14.2
o there was 1 more thing that if possible could you fix or change when you have time.... Please...
When you have only 1 page of rules on /rules is brings up the rules just fine but.... if you have more then 1 page of rules it don't work on the /rules you must from go use the /rules 1 command to even get up the very first page could this is if more then 1 page of rules /rules on its own defaults to page 1
gets very confusing as all the default messages say you must accept the rules first type /rules to then get a message saying used in the wrong way please use /rules <page>
version 2.7 still works in 1.13.2
still using it^^
In reply to Forge_User_43228440:
Amazing! Enjoy :)
Will this work on 1.10 @Lolmewn
@lagnat
This should be it: https://bitbucket.org/Lolmewn/acceptrules/overview
Is the latest code on github? I found something but it looks out of date.
Hello,
Is this updated to 1.9 or does it work on 1.9?
Thanks!
Hey guys, you have a depreciated function still left in your code - is it possible to do a change on build #53 to fix getOnlinePlayers() error?
Are you able to change the rules in a config file? If so, how?
@royalcw
You should use %PLAYER% instead of %Player%.
My AcceptRules config is set to:
onAccept:
commands: []
consoleCommands:
- pex promote %Player%
Now, when a player accepts the rules it creates and promotes someone named %Player% instead of using the actual players name. Here is the server console results:
22:43:56 [Info] royalcw issued server command: /acceptrules
22:43:56 [Info] User %Player%/%Player% promoted to Moderator group
22:43:56 [Info] [PermissionsEx] User %Player%/%Player% has been promoted to Moderator group on default ladder by console
How do I get it to use the actual players name?
Does this prevent them from talking until they have accepted the rules?
Where is the download for mc 1.7.2?
@Lostfinbar
First stop the server, then do config changes, then start server again. It writes some data to the config on server stop so your changes are overwritten then.