Fix the time parsing no longer working.
This commit is contained in:
parent
b4dc142455
commit
f987dedc3d
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user