From 0a2760efbd66339e5a964cac1cc154af937ce8c9 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 15 Jan 2022 17:39:14 +0100 Subject: [PATCH] Hotfix SchematicCommand --- .../steamwar/schematicsystem/commands/SchematicCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java index db1278d..b50034f 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java @@ -316,10 +316,11 @@ public class SchematicCommand extends SWCommand { player.sendMessage("§eSchematics §8(§e" + nodes.size() + "§8)"); nodes.forEach(node -> { String br = node.generateBreadcrumbs(user); + String displayName = br; for (String s : nameList) { - br = br.replace(s, "§e§l" + s + "§8"); + displayName = displayName.replace(s, "§e§l" + s + "§8"); } - TextComponent schematics = new TextComponent("§7" + br); + TextComponent schematics = new TextComponent("§7" + displayName); schematics.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§eSchematic verwalten").create())); schematics.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/schem info " + br));