diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index 149db3e14..1287ad0de 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -684,8 +684,8 @@ public class NPCCommands { if (registryName != null) { registry = CitizensAPI.getNamedNPCRegistry(registryName); if (registry == null) { - registry = CitizensAPI.createNamedNPCRegistry(name, new MemoryNPCDataStore()); - Messaging.send(sender, "An in-memory registry has been created named [[" + name + "]]."); + registry = CitizensAPI.createNamedNPCRegistry(registryName, new MemoryNPCDataStore()); + Messaging.send(sender, "An in-memory registry has been created named [[" + registryName + "]]."); } }