diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java index e2b5f0c04..3847668c5 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java @@ -315,15 +315,17 @@ public void wand(Player player, LocalSession session, ) @CommandPermissions("worldedit.wand.toggle") public void toggleWand(Player player) { - player.printInfo(TextComponent.of("The selection wand is now a normal tool. You can disable it with ") - .append(TextComponent.of("/tool none", TextColor.AQUA).clickEvent( - ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/tool none"))) - .append(TextComponent.of(" and rebind it to any item with ")) - .append(TextComponent.of("/tool selwand", TextColor.AQUA).clickEvent( - ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/tool selwand"))) - .append(TextComponent.of(" or get a new wand with ")) - .append(TextComponent.of("//wand", TextColor.AQUA).clickEvent( - ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "//wand")))); + player.printInfo( + TranslatableComponent.of( + "worldedit.wand.selwand.now.tool", + TextComponent.of("/tool none", TextColor.AQUA).clickEvent( + ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/tool none")), + TextComponent.of("/tool selwand", TextColor.AQUA).clickEvent( + ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/tool selwand")), + TextComponent.of("//wand", TextColor.AQUA).clickEvent( + ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "//wand")) + ) + ); } @Command( diff --git a/worldedit-core/src/main/resources/lang/strings.json b/worldedit-core/src/main/resources/lang/strings.json index ab2d78815..fed15a832 100644 --- a/worldedit-core/src/main/resources/lang/strings.json +++ b/worldedit-core/src/main/resources/lang/strings.json @@ -121,6 +121,7 @@ "worldedit.wand.invalid": "Wand item is mis-configured or disabled.", "worldedit.wand.selwand.info": "Left click: select pos #1; Right click: select pos #2", "worldedit.wand.navwand.info": "Left click: jump to location; Right click: pass through walls", + "worldedit.wand.selwand.now.tool": "The selection wand is now a normal tool. You can disable it with {0} and rebind it to any item with {1} or get a new wand with {2}.", "worldedit.contract.contracted": "Region contracted {0} blocks.", "worldedit.shift.shifted": "Region shifted.", "worldedit.outset.outset": "Region outset.",