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>
This commit is contained in:
Orlaando
2022-04-19 00:55:19 -06:00
committed by GitHub
parent 27ee46047e
commit 3610af15e8
2 changed files with 3 additions and 2 deletions

View File

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