mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Made the argument order for //contact and //expand consistent with the other commands.
This commit is contained in:
parent
c7a122a001
commit
6c71e6046b
@ -834,13 +834,11 @@ public class WorldEditController {
|
|||||||
} else if (split[0].equalsIgnoreCase("//expand")) {
|
} else if (split[0].equalsIgnoreCase("//expand")) {
|
||||||
checkArgs(split, 1, 2, split[0]);
|
checkArgs(split, 1, 2, split[0]);
|
||||||
Vector dir;
|
Vector dir;
|
||||||
int change;
|
int change = Integer.parseInt(split[1]);
|
||||||
if (split.length == 3) {
|
if (split.length == 3) {
|
||||||
dir = getDirection(player, split[1].toLowerCase());
|
dir = getDirection(player, split[2].toLowerCase());
|
||||||
change = Integer.parseInt(split[2]);
|
|
||||||
} else {
|
} else {
|
||||||
dir = getDirection(player, "me");
|
dir = getDirection(player, "me");
|
||||||
change = Integer.parseInt(split[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Region region = session.getRegion();
|
Region region = session.getRegion();
|
||||||
@ -856,13 +854,11 @@ public class WorldEditController {
|
|||||||
} else if (split[0].equalsIgnoreCase("//contract")) {
|
} else if (split[0].equalsIgnoreCase("//contract")) {
|
||||||
checkArgs(split, 1, 2, split[0]);
|
checkArgs(split, 1, 2, split[0]);
|
||||||
Vector dir;
|
Vector dir;
|
||||||
int change;
|
int change = Integer.parseInt(split[1]);
|
||||||
if (split.length == 3) {
|
if (split.length == 3) {
|
||||||
dir = getDirection(player, split[1].toLowerCase());
|
dir = getDirection(player, split[2].toLowerCase());
|
||||||
change = Integer.parseInt(split[2]);
|
|
||||||
} else {
|
} else {
|
||||||
dir = getDirection(player, "me");
|
dir = getDirection(player, "me");
|
||||||
change = Integer.parseInt(split[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Region region = session.getRegion();
|
Region region = session.getRegion();
|
||||||
|
Loading…
Reference in New Issue
Block a user