From 63aec0d2dc7aec7ce96030a009124f971d88324d Mon Sep 17 00:00:00 2001 From: aPunch Date: Sun, 26 Feb 2012 10:19:57 -0600 Subject: [PATCH] change to remove command --- .../java/net/citizensnpcs/command/command/NPCCommands.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/citizensnpcs/command/command/NPCCommands.java b/src/main/java/net/citizensnpcs/command/command/NPCCommands.java index 603e7b19e..4592edf81 100644 --- a/src/main/java/net/citizensnpcs/command/command/NPCCommands.java +++ b/src/main/java/net/citizensnpcs/command/command/NPCCommands.java @@ -116,6 +116,10 @@ public class NPCCommands { @Requirements public void remove(CommandContext args, Player player, NPC npc) { if (args.argsLength() == 2) { + if (!args.getString(1).equals("all")) { + Messaging.sendError(player, "Incorrect syntax. /npc remove (all)"); + return; + } if (!player.hasPermission("citizens.npc.remove.all") && !player.hasPermission("citizens.admin")) { Messaging.sendError(player, "You don't have permission to execute that command."); return;