Update readme.md

This commit is contained in:
bluefireoly
2021-01-19 13:48:51 +01:00
parent 1bc2f6782e
commit 1c98be3fc3

View File

@@ -126,6 +126,7 @@ val gui = kSpigotGUI(GUIType.FIVE_BY_NINE) {
// a button with a custom callback // a button with a custom callback
button(Slots.RowThreeSlotFive, ItemStack(Material.REPEATER)) { button(Slots.RowThreeSlotFive, ItemStack(Material.REPEATER)) {
// change content of the current view
it.guiInstance[Slots.RowTwoSlotFive] = ItemStack(Material.values().random(), (1..64).random()) it.guiInstance[Slots.RowTwoSlotFive] = ItemStack(Material.values().random(), (1..64).random())
} }