From a9fd02a34c3219fafc2a689aee8c9ff37a450fea Mon Sep 17 00:00:00 2001 From: Jonathan Brouwer Date: Fri, 29 Mar 2019 21:55:44 +0100 Subject: [PATCH] Minor fix --- .../api/command/argument/arguments/BoundedDoubleArgument.java | 2 +- .../resources/assets/ultimatecore/language/EN_US.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/bammerbom/ultimatecore/sponge/api/command/argument/arguments/BoundedDoubleArgument.java b/src/main/java/bammerbom/ultimatecore/sponge/api/command/argument/arguments/BoundedDoubleArgument.java index ddbe7e86..bd9d6236 100644 --- a/src/main/java/bammerbom/ultimatecore/sponge/api/command/argument/arguments/BoundedDoubleArgument.java +++ b/src/main/java/bammerbom/ultimatecore/sponge/api/command/argument/arguments/BoundedDoubleArgument.java @@ -59,7 +59,7 @@ public Double parseValue(CommandSource source, CommandArgs args) throws Argument throw args.createError(Messages.getFormatted("core.number.toohigh", "%number%", value)); } if (min != null && num < min) { - throw args.createError(Messages.getFormatted("core.number.toolow", "%number%", value)); + throw args.createError(Messages.getFormatted("core.number.toolow", "%number%", value, "%min%", min)); } return num; } diff --git a/src/main/resources/assets/ultimatecore/language/EN_US.properties b/src/main/resources/assets/ultimatecore/language/EN_US.properties index 059448a0..188b010c 100644 --- a/src/main/resources/assets/ultimatecore/language/EN_US.properties +++ b/src/main/resources/assets/ultimatecore/language/EN_US.properties @@ -67,7 +67,7 @@ core.nopermissions=&cYou don't have enough permissions to do that. core.noplayer=&cOnly players can use this command. core.number.invalid=&cThe argument "%number%" is not a number. core.number.toohigh=&cThe number %number% can be at most %max%. -core.number.toolow=&cThe number %number% must be at least %max%. +core.number.toolow=&cThe number %number% must be at least %min%. core.option.invalidnumber=&cThe value of %option% is invalid. Expected a number, got %value%. core.permissionlevelnotfound=&cPermission level not found: %level% core.groupsubjectnotfound=&cThe group '%group%' could not be found.