This commit is contained in:
Jesse Boyd 2016-05-19 18:13:37 +10:00
parent 78796ca7b4
commit 1df9ae77ab

View File

@ -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;
}