Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.

Commit 0a3f0c1

Browse files
committed
Fix time formats
1 parent 0d39d94 commit 0a3f0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/CommandUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static Duration getDuration(@Nullable String text, Duration def) throws C
136136
return def;
137137
} else {
138138
try {
139-
return TimeUtils.parseDuration("P" + text);
139+
return TimeUtils.parseDuration(text);
140140
} catch(DateTimeParseException e) {
141141
throw new TranslatableCommandException("command.error.invalidTimePeriod", text);
142142
}

0 commit comments

Comments
 (0)