From 798ec1c3aa3ff7f3ebe14b5b50070337102afb52 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 23 Apr 2023 16:38:12 +0800 Subject: [PATCH] Fix wrong registry name creation for /npc create --- main/src/main/java/net/citizensnpcs/commands/NPCCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + "]]."); } }