mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Added support for //stack [-a] to not stack air.
This commit is contained in:
parent
aed274a1a5
commit
3d98c7667d
@ -174,7 +174,7 @@ public class RegionCommands {
|
|||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
aliases = {"/move"},
|
aliases = {"/move"},
|
||||||
usage = "[count] [direction] [leave-id] ",
|
usage = "[count] [direction] [leave-id]",
|
||||||
desc = "Move the contents of the selection",
|
desc = "Move the contents of the selection",
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 3
|
max = 3
|
||||||
@ -204,7 +204,8 @@ public class RegionCommands {
|
|||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
aliases = {"/stack"},
|
aliases = {"/stack"},
|
||||||
usage = "[count] [direction] ",
|
usage = "[count] [direction]",
|
||||||
|
flags = "a",
|
||||||
desc = "Repeat the contents of the selection",
|
desc = "Repeat the contents of the selection",
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 2
|
max = 2
|
||||||
@ -219,7 +220,7 @@ public class RegionCommands {
|
|||||||
args.argsLength() > 1 ? args.getString(1).toLowerCase() : "me");
|
args.argsLength() > 1 ? args.getString(1).toLowerCase() : "me");
|
||||||
|
|
||||||
int affected = editSession.stackCuboidRegion(session.getRegion(),
|
int affected = editSession.stackCuboidRegion(session.getRegion(),
|
||||||
dir, count, true);
|
dir, count, !args.hasFlag('a'));
|
||||||
player.print(affected + " blocks changed. Undo with //undo");
|
player.print(affected + " blocks changed. Undo with //undo");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user