Update readme.md
This commit is contained in:
@@ -174,10 +174,7 @@ val gui = kSpigot.inventoryGUI(InventoryGUIType.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)) {
|
||||||
it.bukkitEvent.inventory.setItem(
|
it.gui[Slots.RowTwoSlotFive] = ItemStack(Material.values().random(), (1..64).random()
|
||||||
Slots.RowTwoSlotFive,
|
|
||||||
ItemStack(Material.values().random(), (1..64).random())
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// a slot where player interaction is permitted
|
// a slot where player interaction is permitted
|
||||||
|
Reference in New Issue
Block a user