diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index a2b6d7702..f27ad4131 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -680,6 +680,10 @@ public class NPCCommands { if (!sender.hasPermission("citizens.npc.create.*") && !sender.hasPermission("citizens.npc.createall") && !sender.hasPermission("citizens.npc.create." + type.name().toLowerCase().replace("_", ""))) throw new NoPermissionsException(); + + if ((at != null || registryName != null || traits != null || templateName != null) + && !sender.hasPermission("citizens.npc.admin")) + throw new NoPermissionsException(); NPCRegistry registry = CitizensAPI.getNPCRegistry(); if (registryName != null) {