From f987dedc3dfe0c8dd2c2822f6a451a9c8fc65f7c Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Wed, 25 Dec 2013 01:12:20 -0600 Subject: [PATCH] Fix the time parsing no longer working. --- .../java/com/graywolf336/jail/command/commands/JailCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java b/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java index 1aa56ce..b80b1ac 100644 --- a/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java +++ b/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java @@ -62,7 +62,7 @@ public class JailCommand implements Command { try { if(params.time().isEmpty()) { time = Util.getTime(jm.getPlugin().getConfig().getString(Settings.JAILDEFAULTTIME.getPath(), "30m")); - }else if(Integer.valueOf(params.time()) == -1) { + }else if(params.time() == String.valueOf(-1)) { time = -1L; }else { time = Util.getTime(params.time());