13
0

Hotfix SchematicCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-01-15 17:39:14 +01:00
Ursprung d8d5d150d2
Commit 0a2760efbd

Datei anzeigen

@ -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));