Work on some unit tests for #7 and reorganize part of the config.
This commit is contained in:
@ -84,7 +84,7 @@ public class JailCommand implements Command {
|
||||
Long time = 10L;
|
||||
try {
|
||||
if(params.getTime() == null) {
|
||||
time = Util.getTime(jm.getPlugin().getConfig().getString(Settings.JAILDEFAULTTIME.getPath(), "30m"));
|
||||
time = Util.getTime(jm.getPlugin().getConfig().getString(Settings.DEFAULTTIME.getPath(), "30m"));
|
||||
}else if(params.getTime() == String.valueOf(-1)) {
|
||||
time = -1L;
|
||||
}else {
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.LangString;
|
||||
needsPlayer = false,
|
||||
pattern = "time|t",
|
||||
permission = "jail.command.jailtime",
|
||||
usage = "/jail time <add|remove|show> <player> <time>"
|
||||
usage = "/jail time [add|remove|show] [player] <time>"
|
||||
)
|
||||
public class JailTimeCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
Reference in New Issue
Block a user