package de.steamwar.bausystem.commands;
import org.bukkit.event.EventHandler;
import org.bukkit.event.block.BlockPhysicsEvent;
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);