-
Notifications
You must be signed in to change notification settings - Fork 0
Changing The Looks Of A GUI
From first look, the GUI structure looks complicated, but it's actually quite simple! Here is what you need to know.
First, you need to head to your config.yml
(/plugins/DailyShop/config.yml
), and find the guis:
section.
When your there, you should see minerGui:
, this defines the name of the GUI in the backend (since you can have an unlimited amount!).
After, there is slotsAmount:
, this is how big you want your GUI to be, (for a double chest, there is 54 slots, a single chest is 27).
name:
Is the name of the GUI, in miner it's called Miner's Gui
.
slots:
This is where your specifying what items are in the GUI.
0:
This is the slot number where the item will be (for a double chest, 1st slot is 0, last slot is 53).
isDailyItem: true/false
This is if the item in that slot will be a DailyItem or not, if it is, you won't need to put a name, material, or lore lines with it. If the item your doing is not a DailyItem, just remove this line and it will register it as a normal item.
item:
This is where you put the material the item would be (Diamond pickaxe would be DIAMOND_PICKAXE, etc).
name:
The display name of the item.
lore:
The lore of the item.
left-click-commands:
Any commands that should be executed if item is left clicked (add exitInventory
to close the gui).
right-click-commands:
Any commands that should be executed if item is right clicked (add exitInventory
to close the gui).
isPagedGUI:
If the item is a paged GUI button
page:
The page that will be opened when the item is clicked
category:
The category it should get the random item from.
random-item:
The random item it should pick, each reset the items change, you can go up to how ever many items you have in the database (Each item in that category has a random number from 1 - the size of entries).
You need help? Discord Support: https://discord.gg/pj8auQEPJU