Home›Java›Mods›GUI Rules
ModsJava

GUI Rules

Minecraft Java mod. Download on the author's site.

⬇ Download on Spigot
NOTE!
This plugin isn't going to be updated by me anymore.
You may decompile the plugin and edit the code.
If you wish to further update the plugin, you can contact me so I can add the link to this resource. However, you must add a link back to this resource on your own resource when you wish to further update this plugin.
A new person has taken over this plugin!
Here is the link to the new page:
https://www.spigotmc.org/resources/guirulesreloaded.33439/[/B[
​



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 that rule exists.

How to install
1. Put the jar file into your plugins folder.
2. Launch the server and stop the server.
3. Edit the config

Screenshot
[​IMG]


Config
Please note that character as '[' and ']' can't be used in names, because of bukkit thinking it's a list.
And don't forget to update the rows to (highest slot / 9)
Code (Text):
#
#   - you can use & in place of ยง (to get this use 'alt gr' + 'shift' + 's') to get color codes

gui:
  rows: 1
  name: Rules
  '0':
    itemid: 339
    amount: 1
    itemname: Don't swear
    lores:
    - If you swear, you get banned!
    - For ever!
    - And that's really bad!
    enchantments:
    - haste:1
    slot: 0
  '1':
    itemid: 339
    amount: 1
    itemname: Listen to the staff
    lores:
    - It's rude to don't listen to the staff!
    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!
    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
    slot: 3
  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!
    slot: 7
  disagree:
    itemid: 152
    itemamount: 1
    itemname: Disagree
    lores:
    - If you don't agree, you will be kicked until you agree.
    slot: 8
agreecommands:
- tell %player% Thank you for agreeing the rules, we do this because we want everybody to know the rules and have fun!
disagreecommands:
- kick %player% You must agree the rules, to be able to play on this server! we just want that players will have fun :(
#Hide the players when they are in the inventory
hidePlayer: true
players:
- faa65bd8-8dda-41a9-845f-e9b8681c76c1

When updating the rules it's best to clear the players list at the bottom of the config, so that all the players have to agree to it again.

Other
There are no permissions or commands to this plugin it's all in the config.

This plugin is also created by just using the api, so as long as the api doesn't change, this plugin should be version independent.

I also will probably not update this plugin, as this plugin still works.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

GUI Rules is a free Minecraft Java mod. Downloaded 5,369 times (via Spigot). Download it and open it directly in the game.

Explore more