diff --git a/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetDurationCommand.java b/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetDurationCommand.java index 9eda0bcf..7a07f0a2 100644 --- a/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetDurationCommand.java +++ b/AreaShop/src/main/java/me/wiefferink/areashop/commands/SetDurationCommand.java @@ -103,7 +103,7 @@ private String parseInternalDuration(String rawDuration, @Nonnull CommandContext ArgumentParseResult parseResult = DURATION_PARSER.parse(context, tempInput); Optional failure = parseResult.failure(); if (failure.isPresent()) { - throw new CommandExecutionException(failure.get()); + throw new AreaShopCommandException("setduration-wrongAmount", rawDuration); } Optional parsedDuration = parseResult.parsedValue(); if (parsedDuration.isEmpty()) {