Fix time formats

This commit is contained in:
Pablete1234 2017-02-01 03:55:45 +01:00
parent 0d39d948be
commit 0a3f0c125f
No known key found for this signature in database
GPG Key ID: DAFF9A337EF9A5FA
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public abstract class CommandUtils {
return def;
} else {
try {
return TimeUtils.parseDuration("P" + text);
return TimeUtils.parseDuration(text);
} catch(DateTimeParseException e) {
throw new TranslatableCommandException("command.error.invalidTimePeriod", text);
}