Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command 3:
- trigger:
- open chest inventory with 6 rows named "&6Test" to player
- set slot 1 of current inventory to black stained glass pane named " "
- set slot 2 of current inventory to red stained glass pane named " "
- on inventory click:
- clicked slot = 1:
- cancel event
- import:
- org.bukkit.event.inventory.InventoryClickEvent
- org.bukkit.event.block.BlockDropItemEvent
- on InventoryClickEvent:
- event.getRawSlot() = 2
- event.setCancelled(true)
- on BlockDropItemEvent:
- event.setCancelled(true)
- on BlockDropItemEvent:
- broadcast "1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement