Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import:
- org.bukkit.event.inventory.InventoryClickEvent
- on InventoryClickEvent: #("on inventory click" in Skript)
- set {_p} to event.getWhoClicked()
- set {_slot} to event.getSlot()
- {_slot} != -999
- try event.getView().getTitle() = "Tutorial"
- #event.getClickedInventory() != {_p}.getInventory() #Nicht anzuraten!
- broadcast "%event.getCurrentItem().getType()%"
- if event.getCurrentItem().getType().toString() = "STONE": #Gleich zu "%event.getCurrentItem().getType()%" = "STONE"
- event.setCancelled(true)
- command test2:
- trigger:
- open chest inventory named "Tutorial" with 3 rows to player
Advertisement
Advertisement