From 1df9ae77abc20aaaa49f0f29fc56916ca5cdb7fb Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 19 May 2016 18:13:37 +1000 Subject: [PATCH] Fixes #1111 --- .../java/com/intellectualcrafters/plot/commands/Unlink.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Unlink.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Unlink.java index e801c0153..5ed63285f 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Unlink.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Unlink.java @@ -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; }