mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-30 06:33:56 +01:00
added character permission wildcard
This commit is contained in:
parent
90d5473ba2
commit
b280e918ec
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user