From bccdc7d2327f8d06c776c0b83b24650b4ea02abe Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 5 Jan 2025 11:41:49 +0100 Subject: [PATCH] Remove spawn command --- src/main/java/eu/m724/giants/GiantsCommand.java | 14 +------------- src/main/resources/plugin.yml | 4 +--- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/main/java/eu/m724/giants/GiantsCommand.java b/src/main/java/eu/m724/giants/GiantsCommand.java index 47bab16..2d9f26a 100644 --- a/src/main/java/eu/m724/giants/GiantsCommand.java +++ b/src/main/java/eu/m724/giants/GiantsCommand.java @@ -46,19 +46,7 @@ public class GiantsCommand implements CommandExecutor { Player player = sender instanceof Player ? (Player) sender : null; - if (action.equals("spawn")) { - sender.sendMessage("This command is deprecated. Use /summon giant instead"); - if (player != null) { - if (plugin.isSpawnableAt(player.getLocation())) { - sender.sendMessage("Spawned a Giant"); - player.getWorld().spawnEntity(player.getLocation(), EntityType.GIANT); - } else { - sender.sendMessage("No space here for a Giant"); - } - } else { - sender.sendMessage("Only players can use this command."); - } - } else if (action.equals("serialize")) { + if (action.equals("serialize")) { if (player != null) { ItemStack itemStack = player.getInventory().getItemInMainHand(); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 29bda0e..251b16b 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -9,10 +9,8 @@ load: STARTUP commands: giants: description: Utility command for Giants + permissions: - giants.command.spawn: - description: Permits /giants spawn - default: op giants.command.serialize: description: Permits /giants serialize default: op