From 0a3f0c125f860e5fb31840262c30dd5c9cea5ca2 Mon Sep 17 00:00:00 2001 From: Pablete1234 Date: Wed, 1 Feb 2017 03:55:45 +0100 Subject: [PATCH] Fix time formats --- .../main/java/tc/oc/commons/bukkit/commands/CommandUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/CommandUtils.java b/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/CommandUtils.java index 3360c65..dda3716 100644 --- a/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/CommandUtils.java +++ b/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/commands/CommandUtils.java @@ -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); }