diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java index 879a7cc..764da32 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java @@ -2,6 +2,7 @@ package de.steamwar.bausystem.commands; import org.bukkit.event.EventHandler; import org.bukkit.event.block.*; +import org.bukkit.event.inventory.InventoryMoveItemEvent; public class CommandFreeze extends ToggleCommand { @@ -55,4 +56,9 @@ public class CommandFreeze extends ToggleCommand { public void onBlockDispense(BlockDispenseEvent e){ e.setCancelled(true); } + + @EventHandler + public void onInventoryMoveEvent(InventoryMoveItemEvent e){ + e.setCancelled(true); + } }