diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/Range.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/Range.java new file mode 100644 index 0000000..2f87036 --- /dev/null +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/Range.java @@ -0,0 +1,6 @@ +package net.tomatentum.marinara.interaction.commands.annotation; + +public @interface Range { + public double min() default Double.MIN_VALUE; + public double max() default Double.MAX_VALUE; +} diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SlashCommandOption.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SlashCommandOption.java index fe1c995..e29c361 100644 --- a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SlashCommandOption.java +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SlashCommandOption.java @@ -15,6 +15,7 @@ public @interface SlashCommandOption { public SlashCommandOptionType type() default SlashCommandOptionType.STRING; public boolean required() default false; public boolean autocomplete() default false; + public Range range() default @Range; public CommandChoices choices() default @CommandChoices; public static enum PlaceHolderEnum {