Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBrouwer committed Mar 29, 2019
1 parent f95d3fc commit a9fd02a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a9fd02a

Please sign in to comment.