3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 02:50:05 +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
// 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<? extends Operation> 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
}