Commands:
/SimpleGUIs reload - reloads the GUIs from the config.
/SimpleGUIs open [gui] [player] - Opens the GUI for a player.
Configuration:
Here is an example.
Code (Text):
Example:
gui-title: 'Example Title'
rows: 1
slots:
9: #Slot number
material: 'SUNFLOWER'
name: '&6&lShop'
amount: 1
lore:
- '&7Super cheap shop'
- '&7&n20%&7 sale on all items!'
glow: true
commands:
- 'msg <player> good shop'
messages:
- '&aEnjoy the shop Mr. <player>!'
The GUI now looks like this
to add more contents simply duplicate the slot number section and change the slot number. The slot number can be between 1 and rows*9 so for example if have 2 rows, your slots can be between 1-18.
here is an example
Code (Text):
Example:
gui-title: 'Example Title'
rows: 1
slots:
9: #Slot number
material: 'SUNFLOWER'
name: '&6&lShop'
amount: 1
lore:
- '&7Super cheap shop'
- '&7&n20%&7 sale on all items!'
glow: true
commands:
- 'msg <player> good shop'
messages:
- '&aEnjoy the shop Mr. <player>!'
5:
material: 'BARRIER'
name: '&4&lA Cool Barrier'
amount: 1
lore:
- '&dWhatever you do dont touch the barrier'
glow: true
messages:
- '&cDont touch me im too cool for you.'
1:
material: 'PAPER'
name: '&5&lQuests'
amount: 1
lore:
- '&7Fun cool and fun quests that are fun'
glow: true
commands:
- 'msg <player> quests!'
messages:
- '&cThe quests are currently unavailable.'
This is how this GUI looks like
Placeholders:
<player> returns the player who clicked's name. *Only applies in messages and commands
Its as simple as that!
Feel free to ask for help and suggest updates/features!