mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-12 13:44:07 +01:00
Fix wrong registry name creation for /npc create
This commit is contained in:
parent
b53955ebb2
commit
798ec1c3aa
@ -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 + "]].");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user