Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Whitespace police
Dieser Commit ist enthalten in:
Ursprung
7b306160d7
Commit
46e37017bf
@ -53,25 +53,19 @@ public class SelectionCommands {
|
||||
|
||||
Vector pos;
|
||||
|
||||
if(args.argsLength() == 1)
|
||||
{
|
||||
if(args.getString(0).matches("-?\\d+,-?\\d+,-?\\d+"))
|
||||
{
|
||||
if (args.argsLength() == 1) {
|
||||
if (args.getString(0).matches("-?\\d+,-?\\d+,-?\\d+")) {
|
||||
String[] coords = args.getString(0).split(",");
|
||||
pos = new Vector(Integer.parseInt(coords[0]),
|
||||
Integer.parseInt(coords[1]),
|
||||
Integer.parseInt(coords[2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
pos = new Vector(Integer.parseInt(coords[0]), Integer.parseInt(coords[1]), Integer.parseInt(coords[2]));
|
||||
} else {
|
||||
player.printError("Invalid coordinates " + args.getString(0));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
pos = player.getBlockIn();
|
||||
}
|
||||
else pos = player.getBlockIn();
|
||||
|
||||
if (!session.getRegionSelector(player.getWorld())
|
||||
.selectPrimary(pos)) {
|
||||
if (!session.getRegionSelector(player.getWorld()).selectPrimary(pos)) {
|
||||
player.printError("Position already set.");
|
||||
return;
|
||||
}
|
||||
@ -93,25 +87,21 @@ public class SelectionCommands {
|
||||
throws WorldEditException {
|
||||
|
||||
Vector pos;
|
||||
if(args.argsLength() == 1)
|
||||
{
|
||||
if(args.getString(0).matches("-?\\d+,-?\\d+,-?\\d+"))
|
||||
{
|
||||
if(args.argsLength() == 1) {
|
||||
if(args.getString(0).matches("-?\\d+,-?\\d+,-?\\d+")) {
|
||||
String[] coords = args.getString(0).split(",");
|
||||
pos = new Vector(Integer.parseInt(coords[0]),
|
||||
Integer.parseInt(coords[1]),
|
||||
Integer.parseInt(coords[2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
player.printError("Invalid coordinates " + args.getString(0));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
pos = player.getBlockIn();
|
||||
}
|
||||
else pos = player.getBlockIn();
|
||||
|
||||
if (!session.getRegionSelector(player.getWorld())
|
||||
.selectSecondary(pos)) {
|
||||
if (!session.getRegionSelector(player.getWorld()).selectSecondary(pos)) {
|
||||
player.printError("Position already set.");
|
||||
return;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren