Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Listener
- @Exclude({ClickInventoryEvent.Open.class, ClickInventoryEvent.Close.class})
- public void onInventoryClick(ClickInventoryEvent e) {
- if (e.getTargetInventory().getPlugin().getInstance().orElse(null) == INSTANCE) {
- e.setCancelled(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement