mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +01:00
added character permission wildcard
This commit is contained in:
parent
5469138a69
commit
1d67c6ffcf
@ -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