Fix ColorReplaceCommand and TypeReplaceCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
d31d8b7b01
Commit
8b62559547
@ -81,6 +81,7 @@ public class ColorReplaceCommand extends SWCommand {
|
||||
SpecialReplace specialReplace = new SpecialReplace(editSession, replacements, from.getKey());
|
||||
int affected = editSession.replaceBlocks(region, specialReplace, specialReplace);
|
||||
editSession.flushSession();
|
||||
WorldEditUtils.addToPlayer(player, editSession);
|
||||
BukkitAdapter.adapt(player).printInfo(TranslatableComponent.of("worldedit.replace.replaced", new Component[]{TextComponent.of(affected)}));
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,7 @@ public class TypeReplaceCommand extends SWCommand {
|
||||
});
|
||||
int affected = editSession.replaceBlocks(region, specialReplace, specialReplace);
|
||||
editSession.flushSession();
|
||||
WorldEditUtils.addToPlayer(player, editSession);
|
||||
BukkitAdapter.adapt(player).printInfo(TranslatableComponent.of("worldedit.replace.replaced", new Component[]{TextComponent.of(affected)}));
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren