3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Use translation message for brush assignment

Dieser Commit ist enthalten in:
NotMyFault 2021-08-04 22:44:24 +02:00
Ursprung 2bcf3eedf1
Commit 3ccb5e0aed
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C

Datei anzeigen

@ -997,11 +997,14 @@ public class BrushCommands {
// TODO NOT IMPLEMENTED // TODO NOT IMPLEMENTED
// UtilityCommands.list(dir, actor, args, page, null, true, baseCmd); // UtilityCommands.list(dir, actor, args, page, null, true, baseCmd);
} }
//FAWE end
static void setOperationBasedBrush( static void setOperationBasedBrush(
Player player, Player player,
LocalSession session, LocalSession session,
//FAWE start - Expression > double
Expression radius, Expression radius,
//FAWE end
Contextual<? extends Operation> factory, Contextual<? extends Operation> factory,
RegionFactory shape, RegionFactory shape,
String permission String permission
@ -1013,9 +1016,9 @@ public class BrushCommands {
tool.setFill(null); tool.setFill(null);
tool.setBrush(new OperationFactoryBrush(factory, shape, session), permission); 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( @Command(
name = "deform", name = "deform",
@ -1418,6 +1421,7 @@ public class BrushCommands {
bs.setBrush(brush); bs.setBrush(brush);
return process(player, arguments, bs); return process(player, arguments, bs);
} }
//FAWE end
static void setOperationBasedBrush( static void setOperationBasedBrush(
Player player, LocalSession session, double radius, 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()))); player.print(Caption.of("worldedit.brush.operation.equip", TextComponent.of(factory.toString())));
ToolCommands.sendUnbindInstruction(player, UNBIND_COMMAND_COMPONENT); ToolCommands.sendUnbindInstruction(player, UNBIND_COMMAND_COMPONENT);
} }
//FAWE end
} }