Remove deprecated player inventory event listener
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bea 2022-11-12 06:26:04 +01:00
parent b6aeed7ea8
commit 1c51701903
1 changed files with 0 additions and 16 deletions

View File

@ -67,20 +67,4 @@ public class PlayerChecker implements Listener
{
event.setCancelled(true);
}
@EventHandler
public void onInventoryEvent(InventoryEvent event)
{
if(event instanceof Cancellable)
{
if(!(event instanceof InventoryCloseEvent) &&
!(event instanceof InventoryClickEvent) &&
!(event instanceof InventoryDragEvent) &&
!(event instanceof InventoryOpenEvent))
{
((Cancellable) event).setCancelled(true);
}
}
}
}