From fea76d2919a6c181f04174be754e8a9dda10ca9a Mon Sep 17 00:00:00 2001 From: Foxikle Date: Sun, 13 Aug 2023 13:39:35 -0400 Subject: [PATCH] support for empty names with %empty% --- src/main/java/dev/foxikle/customnpcs/NPC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/foxikle/customnpcs/NPC.java b/src/main/java/dev/foxikle/customnpcs/NPC.java index 614bc06f..d5c23b37 100644 --- a/src/main/java/dev/foxikle/customnpcs/NPC.java +++ b/src/main/java/dev/foxikle/customnpcs/NPC.java @@ -92,7 +92,7 @@ public NPC(CustomNPCs plugin, MinecraftServer minecraftServer, ServerLevel world this.bootsItem = bootsItem; this.clickable = interactable; this.handItem = handItem; - this.name = name; + this.name = name.replace("%empty%", ""); this.profile = gameProfile; this.world = spawnLoc.getWorld(); this.uuid = uuid;