use the fallback prefix in teleport command (fixes #115)

This commit is contained in:
Pyrbu 2023-12-18 16:44:33 +01:00
parent c34c1c3cbf
commit 5c1ef46fc2

@ -31,7 +31,7 @@ public class ListCommand implements CommandHandler {
.append(Component.text(" | ", NamedTextColor.GRAY)) .append(Component.text(" | ", NamedTextColor.GRAY))
.append(Component.text("Location: " + npc.getWorldName() + " X:" + location.getBlockX() + " Y:" + location.getBlockY() + " Z:" + location.getBlockZ(), NamedTextColor.GREEN)) .append(Component.text("Location: " + npc.getWorldName() + " X:" + location.getBlockX() + " Y:" + location.getBlockY() + " Z:" + location.getBlockZ(), NamedTextColor.GREEN))
.append(Component.text(" | ", NamedTextColor.GRAY)) .append(Component.text(" | ", NamedTextColor.GRAY))
.append(Component.text("[TELEPORT]", NamedTextColor.DARK_GREEN).clickEvent(ClickEvent.runCommand("/npc teleport " + id))) .append(Component.text("[TELEPORT]", NamedTextColor.DARK_GREEN).clickEvent(ClickEvent.runCommand("/znpcsplus:npc teleport " + id)))
.append(Component.text("\n", NamedTextColor.GRAY)); .append(Component.text("\n", NamedTextColor.GRAY));
} }
context.send(component.build()); context.send(component.build());