GUI Rules
I recreated the plugin!
This plugin is now available at this location. I chose to put it on the spigot page, because it still had a good active community, rather than bukkit.
This project has been inactive because of a hard drive failure that caused the plugin to be gone from my old hard drive.
You can still download the plugins if you want. And if you can, you may change the plugin to fix or customize the plugin. But you may not distribute the plugin, you may only use it for your own server(s).
This plugin will show on the first join a GUI with all the rules (if it fits) and a agree and disagree button. This will make sure that your players know the rules, so that they don't have the excuse of that they didn't know that rule exists.
How to install
Just put the jar file into your plugins folder, launch the server and stop it again. Edit the config.
How does it work
When a player joins GUI Rules checks if it's his first join, or didn't agreed with the rules and got kicked, if so GUI Rules will show a inventory of a chest that you can customize in the config (everything you need to know about the config is in the config). If he clicks agree, the inventory closes and he will never get anything showed from GUI Rules (unless if the config is deleted). If he clicks disagree, he will be kicked until he agrees.
How to use the plugin
You install the plugin and edit the config. When you join the server (for the first time since the plugin was installed) you read the rules and click agree.
Commands
There are no commands.
Permissions
There are no permissions
Config
#tips: # - you can use & in place of § (to get this use 'alt gr' + 'shift' + 's') to get color codes gui: #amount of rows you can fill rows: 1 #the displayname of the inventory name: Rules #this is a item. 0 is just something i use to be able to get all the data. #0 will mean nothing, but if you add another item, it must be 1 (1 higher then the last one, and the last one was 0, so 0 + 1 = 1) 0: #the id of the item that is in the slot itemid: 339 #the amount of items amount: 1 #the name of the item itemname: Don't swear #the lores lores: - If you swear, you get banned! - For ever! - And that's really bad! #the enchantments that the item has (echantmentname:level) enchantments: - haste:1 #the slot it's in. the first slot is 0, and the second slot is 1. slot: 0 #this is just item 0 copied, but 0 has been replaced with 1. 1: itemid: 339 amount: 1 itemname: Listen to the staff lores: - It's rude to don't listen to the staff! enchantments: slot: 1 2: itemid: 339 amount: 1 itemname: Don't hack lores: - If you hack, you just can't play a nice game. - You will be banned for ever! enchantments: slot: 2 3: itemid: 339 amount: 1 itemname: Be nice to eachother lores: - If you are nice to others, they will be nice to you. - If you aren't nice to others, you will be kicked/banned enchantments: slot: 3 #this is just like the previous items, but this is the agree button agree: itemid: 133 amount: 1 itemname: Agree lores: - You agree with that you read all the rules, - and that you will follow the rules. - If you don't follow the rules, there can happen things! enchantments: slot: 7 #this is just like the previous items, but this is the disagree button. disagree: itemid: 152 itemamount: 1 itemname: Disagree lores: - If you don't agree, you will be kicked until you agree. enchantments: slot: 8 #this is the list with commands that will be ran as the console, when you click the agree button. #%player% is the name of the player that clicked the agree button. agreecommands: - tell %player% Thank you for agreeing the rules, we do this because we want everybody to know the rules and have fun! #this is the same as agreecommands, but this is when you click the disagree button. disagreecommands: - kick %player% You must agree the rules, to be able to play on this server! we just want that players will have fun :(
Extra
Note: This plugin is written in a way so that it's compatible with all craftbukkit version (at least above 1.6)!
@FisheyLP
Shift + 3 return '#'. If you said Shift + 4 it would return '$' witch is not the same as §.
You wrote this:
Ever heard of Shift + 3 ?
@madtomic
@Alexander4032
@EpicATrain
I'm now creating a new version of this that hopefully will be released in a few hours!
@madtomic
I had a hard drive failure so the plugin is gone :( I cannot update it anymore.
Can you fix it so it would work with authme reloaded?
Fix this also, if players are kicked for disagree in the first time.
If you click not agree, and you come back in, it doesn't come back up.
@EpicATrain
I will see if I can fix it. It might take a while since I lost all the code of the plugins I had and that I was working on, by a hard drive failure.
It kicks players even if they kick agree.
If you click not agree, and you come back in, it doesn't come back up.
@Alexander4032
i am now creating a new version
Hey.
so I have a question that I hope you can help me with. So I installed the plugin on my server and chaged the config file to my liking and everything was working great, and I like the plugin so far. I wanted to see what happened when someone don't agree with the rules and I got kicked as suspected. But then when I joined back on I was kicked right after I joined, I had no chance of even accepting the rules again in any way. I don't know if this is only something that happened to me or... I tried to reinstall the plugin but it kept happening. Could you tell me how to possible fix this?, it would be nice to have this plugin working on my server :)