Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
Revert /up and /ceil command to use glass block by default. Flight can be done via -f flag now.
Dieser Commit ist enthalten in:
Ursprung
61905527f8
Commit
99fae3e716
@ -118,7 +118,7 @@ public class NavigationCommands {
|
|||||||
aliases = { "ceil" },
|
aliases = { "ceil" },
|
||||||
usage = "[clearance]",
|
usage = "[clearance]",
|
||||||
desc = "Go to the celing",
|
desc = "Go to the celing",
|
||||||
flags = "g",
|
flags = "f",
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 1
|
max = 1
|
||||||
)
|
)
|
||||||
@ -130,8 +130,8 @@ public class NavigationCommands {
|
|||||||
int clearence = args.argsLength() > 0 ?
|
int clearence = args.argsLength() > 0 ?
|
||||||
Math.max(0, args.getInteger(0)) : 0;
|
Math.max(0, args.getInteger(0)) : 0;
|
||||||
|
|
||||||
final boolean alwaysGlass = args.hasFlag('g');
|
final boolean useFlight = args.hasFlag('f');
|
||||||
if (player.ascendToCeiling(clearence, alwaysGlass)) {
|
if (player.ascendToCeiling(clearence, !useFlight)) {
|
||||||
player.print("Whoosh!");
|
player.print("Whoosh!");
|
||||||
} else {
|
} else {
|
||||||
player.printError("No free spot above you found.");
|
player.printError("No free spot above you found.");
|
||||||
@ -179,7 +179,7 @@ public class NavigationCommands {
|
|||||||
aliases = { "up" },
|
aliases = { "up" },
|
||||||
usage = "<block>",
|
usage = "<block>",
|
||||||
desc = "Go upwards some distance",
|
desc = "Go upwards some distance",
|
||||||
flags = "g",
|
flags = "f",
|
||||||
min = 1,
|
min = 1,
|
||||||
max = 1
|
max = 1
|
||||||
)
|
)
|
||||||
@ -190,8 +190,8 @@ public class NavigationCommands {
|
|||||||
|
|
||||||
int distance = args.getInteger(0);
|
int distance = args.getInteger(0);
|
||||||
|
|
||||||
final boolean alwaysGlass = args.hasFlag('g');
|
final boolean useFlight = args.hasFlag('f');
|
||||||
if (player.ascendUpwards(distance, alwaysGlass)) {
|
if (player.ascendUpwards(distance, !useFlight)) {
|
||||||
player.print("Whoosh!");
|
player.print("Whoosh!");
|
||||||
} else {
|
} else {
|
||||||
player.printError("You would hit something above you.");
|
player.printError("You would hit something above you.");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren