Derp, set the time from the given one.
This commit is contained in:
parent
7376326288
commit
92c19fd05f
@ -43,7 +43,7 @@ public class JailCommand implements Command {
|
|||||||
Long time = 10L;
|
Long time = 10L;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Long.parseLong(params.time());
|
time = Long.parseLong(params.time());
|
||||||
}catch(NumberFormatException e) {
|
}catch(NumberFormatException e) {
|
||||||
sender.sendMessage(ChatColor.RED + "Number format is incorrect.");
|
sender.sendMessage(ChatColor.RED + "Number format is incorrect.");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user