Fix time formats
This commit is contained in:
parent
0d39d948be
commit
0a3f0c125f
|
@ -136,7 +136,7 @@ public abstract class CommandUtils {
|
||||||
return def;
|
return def;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
return TimeUtils.parseDuration("P" + text);
|
return TimeUtils.parseDuration(text);
|
||||||
} catch(DateTimeParseException e) {
|
} catch(DateTimeParseException e) {
|
||||||
throw new TranslatableCommandException("command.error.invalidTimePeriod", text);
|
throw new TranslatableCommandException("command.error.invalidTimePeriod", text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue