SteamWar/BauSystem
Archiviert
13
0

WorldEdit autofreeze

Dieser Commit ist enthalten in:
Lixfel 2020-03-01 16:02:14 +01:00
Ursprung 8bf5a3b4cd
Commit f79104e94e

Datei anzeigen

@ -2,6 +2,7 @@ package de.steamwar.bausystem.commands;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.block.*; import org.bukkit.event.block.*;
import org.bukkit.event.inventory.InventoryMoveItemEvent;
public class CommandFreeze extends ToggleCommand { public class CommandFreeze extends ToggleCommand {
@ -55,4 +56,9 @@ public class CommandFreeze extends ToggleCommand {
public void onBlockDispense(BlockDispenseEvent e){ public void onBlockDispense(BlockDispenseEvent e){
e.setCancelled(true); e.setCancelled(true);
} }
@EventHandler
public void onInventoryMoveEvent(InventoryMoveItemEvent e){
e.setCancelled(true);
}
} }