Remove deprecated player inventory event listener
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-11-12 06:26:04 +01:00
parent b6aeed7ea8
commit 1c51701903

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);
}
}
}
}