From 3ccb5e0aed17f1814233dc212a336cb6fcce3286 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 4 Aug 2021 22:44:24 +0200 Subject: [PATCH] Use translation message for brush assignment --- .../java/com/sk89q/worldedit/command/BrushCommands.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java index b155e6525..73fdf0788 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java @@ -997,11 +997,14 @@ public class BrushCommands { // TODO NOT IMPLEMENTED // UtilityCommands.list(dir, actor, args, page, null, true, baseCmd); } + //FAWE end static void setOperationBasedBrush( Player player, LocalSession session, + //FAWE start - Expression > double Expression radius, + //FAWE end Contextual factory, RegionFactory shape, String permission @@ -1013,9 +1016,9 @@ public class BrushCommands { tool.setFill(null); tool.setBrush(new OperationFactoryBrush(factory, shape, session), permission); - player.print(TextComponent.of("Set brush to " + factory)); + player.print(Caption.of("worldedit.brush.operation.equip", TextComponent.of(factory.toString()))); + ToolCommands.sendUnbindInstruction(player, UNBIND_COMMAND_COMPONENT); } - //FAWE end @Command( name = "deform", @@ -1418,6 +1421,7 @@ public class BrushCommands { bs.setBrush(brush); return process(player, arguments, bs); } + //FAWE end static void setOperationBasedBrush( Player player, LocalSession session, double radius, @@ -1434,5 +1438,4 @@ public class BrushCommands { player.print(Caption.of("worldedit.brush.operation.equip", TextComponent.of(factory.toString()))); ToolCommands.sendUnbindInstruction(player, UNBIND_COMMAND_COMPONENT); } - //FAWE end }