-
Notifications
You must be signed in to change notification settings - Fork 5
How to use GUI
MathiasMC edited this page Jul 5, 2020
·
2 revisions
To create a gui make a new file in the gui folder fileName.yml
and a gui should contain
settings:
name: 'example'
size: 54
To add items you can use
COMMANDS
is run every time you click on that item
MATERIAL
'1:0'
format is used if the server version is 1.12 and below (from 1.13 and up you can use 'DIRT'
)
example:
NAME: 'example'
LORES:
- 'example'
MATERIAL: '1:0'
AMOUNT: 1
POSITION: 1
COMMANDS:
- 'example'
OPTIONS:
- CLOSE
- GLOW
CLOSE, GLOW, PLAYERSKULL
To require a level you can use
amount
is the level you has to be
settings:
name: 'example'
size: 54
require:
level:
amount: 5
required:
- 'command'
You can make a shop item by adding this to your item
SHOP:
COST: 10
ENOUGH:
- 'message'
COMMANDS:
- 'command'
You can open your gui by using
/pvplevels gui open fileName.yml <player>