Update readme.md

This commit is contained in:
bluefireoly
2020-09-29 22:27:24 +02:00
parent f7e19dbb5b
commit ad96f3f3b8

View File

@@ -174,10 +174,7 @@ val gui = kSpigot.inventoryGUI(InventoryGUIType.FIVE_BY_NINE) {
// a button with a custom callback
button(Slots.RowThreeSlotFive, ItemStack(Material.REPEATER)) {
it.bukkitEvent.inventory.setItem(
Slots.RowTwoSlotFive,
ItemStack(Material.values().random(), (1..64).random())
)
it.gui[Slots.RowTwoSlotFive] = ItemStack(Material.values().random(), (1..64).random()
}
// a slot where player interaction is permitted