From 1d67c6ffcf99ca0a240d924ee3e317abbcfe5765 Mon Sep 17 00:00:00 2001 From: aPunch Date: Tue, 21 Feb 2012 19:59:55 -0600 Subject: [PATCH] added character permission wildcard --- src/net/citizensnpcs/command/command/NPCCommands.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/citizensnpcs/command/command/NPCCommands.java b/src/net/citizensnpcs/command/command/NPCCommands.java index 69d38688b..b618b27ec 100644 --- a/src/net/citizensnpcs/command/command/NPCCommands.java +++ b/src/net/citizensnpcs/command/command/NPCCommands.java @@ -174,7 +174,8 @@ public class NPCCommands { Messaging.sendError(player, "The NPC already has the character '" + args.getString(1) + "'."); return; } - if (!player.hasPermission("citizens.npc.character." + character.getName())) { + if (!player.hasPermission("citizens.npc.character." + character.getName()) + && !player.hasPermission("citizens.npc.character.*")) { Messaging.sendError(player, "You don't have permission to execute that command."); return; }