mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 12:25:46 +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;
|
||||
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());
|
||||
return false;
|
||||
}
|
||||
createRoad = Boolean.parseBoolean(args[1]);
|
||||
createRoad = Boolean.parseBoolean(args[0]);
|
||||
} else {
|
||||
createRoad = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user