change to remove command

This commit is contained in:
aPunch 2012-02-26 10:19:57 -06:00
parent d3080933ac
commit 8b32f746a4

View File

@ -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;