diff --git a/plugin/src/main/java/com/lishid/openinv/listeners/PlayerListener.java b/plugin/src/main/java/com/lishid/openinv/listeners/PlayerListener.java index 7bbead2..5f6712a 100644 --- a/plugin/src/main/java/com/lishid/openinv/listeners/PlayerListener.java +++ b/plugin/src/main/java/com/lishid/openinv/listeners/PlayerListener.java @@ -54,6 +54,12 @@ public class PlayerListener implements Listener { @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerInteract(PlayerInteractEvent event) { + + // Do not cancel 3rd party plugins' custom events + if (!PlayerInteractEvent.class.equals(event.getClass())) { + return; + } + if (event.getAction() != Action.RIGHT_CLICK_BLOCK || event.getPlayer().isSneaking() || event.useInteractedBlock() == Result.DENY || event.getClickedBlock() == null || !plugin.getAnySilentContainer().isAnySilentContainer(event.getClickedBlock())) {