package de.steamwar.bausystem.commands; import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.Permission; import de.steamwar.bausystem.world.Welt; import de.steamwar.core.Core; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class CommandDebugStick implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(!(sender instanceof Player)) return false; Player player = (Player) sender; if (Welt.noPermission(player, Permission.build)){ player.sendMessage(BauSystem.PREFIX + "§cKein Debugstick für dich hier."); return false; } switch(Core.getVersion()){ case 15: CommandDebugStick_15.giveStick(player); break; case 12: default: player.sendMessage(BauSystem.PREFIX + "§cDen Debugstick gibt es nicht in der 1.12."); } return false; } }