mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 04:26:42 +00:00
Scattercommand should use the same editsession for all commands, make it "silent" by default and allow players to see output if wanted.
This commit is contained in:
@ -694,13 +694,15 @@ public class BrushCommands {
|
||||
@Arg(desc = "double", def = "1")
|
||||
double distance,
|
||||
@Arg(desc = "List of comma-separated commands")
|
||||
List<String> commandStr
|
||||
List<String> commandStr,
|
||||
@Switch(name = 'p', desc = "Show any printed output")
|
||||
boolean print
|
||||
)
|
||||
throws WorldEditException {
|
||||
worldEdit.checkMaxBrushRadius(radius);
|
||||
set(
|
||||
context,
|
||||
new ScatterCommand((int) points, (int) distance, StringMan.join(commandStr, " ")),
|
||||
new ScatterCommand((int) points, (int) distance, StringMan.join(commandStr, " "), print),
|
||||
"worldedit.brush.scattercommand"
|
||||
)
|
||||
.setSize(radius);
|
||||
|
Reference in New Issue
Block a user