3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-08 04:20:06 +01:00

Show number of affected blocks in //set command (#1703)

* Show # of blocks affected in //set

* Fix typo

* fix: Add amount of blocks affected to strings.json

Co-authored-by: NotMyFault <mc.cache@web.de>
Dieser Commit ist enthalten in:
Orlaando 2022-04-19 00:55:19 -06:00 committet von GitHub
Ursprung 27ee46047e
Commit 3610af15e8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -116,7 +116,8 @@ public class RegionCommands {
) { ) {
int affected = editSession.setBlocks(region, pattern); int affected = editSession.setBlocks(region, pattern);
if (affected != 0) { if (affected != 0) {
actor.print(Caption.of("worldedit.set.done")); actor.print(Caption.of("worldedit.set.done", TextComponent.of(affected)));
} }
return affected; return affected;
} }

Datei anzeigen

@ -444,7 +444,7 @@
"worldedit.rotate.rotated": "The clipboard copy has been rotated.", "worldedit.rotate.rotated": "The clipboard copy has been rotated.",
"worldedit.flip.flipped": "The clipboard copy has been flipped.", "worldedit.flip.flipped": "The clipboard copy has been flipped.",
"worldedit.clearclipboard.cleared": "Clipboard cleared.", "worldedit.clearclipboard.cleared": "Clipboard cleared.",
"worldedit.set.done": "Operation completed.", "worldedit.set.done": "Operation completed ({0}).",
"worldedit.set.done.verbose": "Operation completed ({0}).", "worldedit.set.done.verbose": "Operation completed ({0}).",
"worldedit.line.changed": "{0} blocks have been changed.", "worldedit.line.changed": "{0} blocks have been changed.",
"worldedit.line.invalid-type": "//line only works with cuboid selections or convex polyhedral selections", "worldedit.line.invalid-type": "//line only works with cuboid selections or convex polyhedral selections",