added character permission wildcard

This commit is contained in:
aPunch 2012-02-21 19:59:55 -06:00
parent 90d5473ba2
commit b280e918ec

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