Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Whitespace police
Dieser Commit ist enthalten in:
Ursprung
7b306160d7
Commit
46e37017bf
@ -51,27 +51,21 @@ public class SelectionCommands {
|
|||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
|
|
||||||
Vector pos;
|
Vector pos;
|
||||||
|
|
||||||
if(args.argsLength() == 1)
|
if (args.argsLength() == 1) {
|
||||||
{
|
if (args.getString(0).matches("-?\\d+,-?\\d+,-?\\d+")) {
|
||||||
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]));
|
||||||
String[] coords = args.getString(0).split(",");
|
} else {
|
||||||
pos = new Vector(Integer.parseInt(coords[0]),
|
player.printError("Invalid coordinates " + args.getString(0));
|
||||||
Integer.parseInt(coords[1]),
|
return;
|
||||||
Integer.parseInt(coords[2]));
|
}
|
||||||
}
|
} else {
|
||||||
else
|
pos = player.getBlockIn();
|
||||||
{
|
}
|
||||||
player.printError("Invalid coordinates " + args.getString(0));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else pos = player.getBlockIn();
|
|
||||||
|
|
||||||
if (!session.getRegionSelector(player.getWorld())
|
if (!session.getRegionSelector(player.getWorld()).selectPrimary(pos)) {
|
||||||
.selectPrimary(pos)) {
|
|
||||||
player.printError("Position already set.");
|
player.printError("Position already set.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -92,26 +86,22 @@ public class SelectionCommands {
|
|||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
|
|
||||||
Vector pos;
|
Vector pos;
|
||||||
if(args.argsLength() == 1)
|
if(args.argsLength() == 1) {
|
||||||
{
|
if(args.getString(0).matches("-?\\d+,-?\\d+,-?\\d+")) {
|
||||||
if(args.getString(0).matches("-?\\d+,-?\\d+,-?\\d+"))
|
String[] coords = args.getString(0).split(",");
|
||||||
{
|
pos = new Vector(Integer.parseInt(coords[0]),
|
||||||
String[] coords = args.getString(0).split(",");
|
Integer.parseInt(coords[1]),
|
||||||
pos = new Vector(Integer.parseInt(coords[0]),
|
Integer.parseInt(coords[2]));
|
||||||
Integer.parseInt(coords[1]),
|
} else {
|
||||||
Integer.parseInt(coords[2]));
|
player.printError("Invalid coordinates " + args.getString(0));
|
||||||
}
|
return;
|
||||||
else
|
}
|
||||||
{
|
} else {
|
||||||
player.printError("Invalid coordinates " + args.getString(0));
|
pos = player.getBlockIn();
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
else pos = player.getBlockIn();
|
|
||||||
|
|
||||||
if (!session.getRegionSelector(player.getWorld())
|
if (!session.getRegionSelector(player.getWorld()).selectSecondary(pos)) {
|
||||||
.selectSecondary(pos)) {
|
|
||||||
player.printError("Position already set.");
|
player.printError("Position already set.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren