added character permission wildcard

This commit is contained in:
aPunch 2012-02-21 19:59:55 -06:00
parent 5469138a69
commit 1d67c6ffcf

View File

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