package de.steamwar.bausystem.commands;
import org.bukkit.event.EventHandler;
import org.bukkit.event.block.*;
public class CommandFreeze extends ToggleCommand {
public CommandFreeze(){
super(false);
}
public static ToggleCommand getInstance(){
return getInstance(CommandFreeze.class);
@Override
String getNoPermMessage() {
return "§cDu darfst diese Welt nicht einfrieren";
String getEnableMessage(){
return "§cWelt eingefroren";
String getDisableMessage(){
return "§aWelt aufgetaut";
@EventHandler
public void onPhysicsEvent(BlockPhysicsEvent e){
e.setCancelled(true);
public void onPistonExtend(BlockPistonExtendEvent e){
public void onPistonRetract(BlockPistonRetractEvent e){
public void onBlockGrow(BlockGrowEvent e){
public void onRedstoneEvent(BlockRedstoneEvent e){
e.setNewCurrent(e.getOldCurrent());
public void onBlockDispense(BlockDispenseEvent e){