Fix the time parsing no longer working.

This commit is contained in:
graywolf336 2013-12-25 01:12:20 -06:00
parent b4dc142455
commit f987dedc3d

View File

@ -62,7 +62,7 @@ public class JailCommand implements Command {
try { try {
if(params.time().isEmpty()) { if(params.time().isEmpty()) {
time = Util.getTime(jm.getPlugin().getConfig().getString(Settings.JAILDEFAULTTIME.getPath(), "30m")); 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; time = -1L;
}else { }else {
time = Util.getTime(params.time()); time = Util.getTime(params.time());