Skip to content

How to use GUI

MathiasMC edited this page Jul 5, 2020 · 2 revisions

Create

To create a gui make a new file in the gui folder fileName.yml

and a gui should contain

settings:
  name: 'example'
  size: 54

Add items

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

Options

CLOSE, GLOW, PLAYERSKULL

Require level to open gui

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'

Shops

You can make a shop item by adding this to your item

SHOP:
  COST: 10
  ENOUGH:
    - 'message'
  COMMANDS:
    - 'command'

Open

You can open your gui by using

/pvplevels gui open fileName.yml <player>

Clone this wiki locally