mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fixes #1111
This commit is contained in:
parent
78796ca7b4
commit
1df9ae77ab
@ -39,11 +39,11 @@ public class Unlink extends SubCommand {
|
|||||||
}
|
}
|
||||||
final boolean createRoad;
|
final boolean createRoad;
|
||||||
if (args.length != 0) {
|
if (args.length != 0) {
|
||||||
if (args.length != 1 || StringMan.isEqualIgnoreCaseToAny(args[0], "true", "false")) {
|
if (args.length != 1 || !StringMan.isEqualIgnoreCaseToAny(args[0], "true", "false")) {
|
||||||
C.COMMAND_SYNTAX.send(plr, getUsage());
|
C.COMMAND_SYNTAX.send(plr, getUsage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
createRoad = Boolean.parseBoolean(args[1]);
|
createRoad = Boolean.parseBoolean(args[0]);
|
||||||
} else {
|
} else {
|
||||||
createRoad = true;
|
createRoad = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user