Skip to content

Commit

Permalink
Merge pull request #126 from ShreyasAyyengar/v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal authored Jan 17, 2025
2 parents 8542d8f + 263f667 commit c24d09f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
}

group = "io.github.revxrsal"
version = "4.0.0-rc.4"
version = "4.0.0-rc.5"

java {
toolchain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public void validate(@NotNull CommandActor actor, Number value, @NotNull Paramet
Range range = parameter.annotations().get(Range.class);
if (range == null)
return;
if (value == null)
return;
if (value.doubleValue() > range.max() || value.doubleValue() < range.min())
throw new NumberNotInRangeException(value, range.min(), range.max());
}
Expand Down

0 comments on commit c24d09f

Please sign in to comment.