Remove deprecated player inventory event listener
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b6aeed7ea8
commit
1c51701903
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user