Skip to content

Conversation

@AerWyn81
Copy link
Contributor

This pull request adds support for specifying a random amount range when using the give and giveall server item commands. Users can now enter an amount as a single number or as a range (e.g., 1-10), and the command will randomly select an amount within that range. Additionally, tab completion has been updated to suggest common ranges.

Command functionality improvements:

  • Added support for amount ranges (e.g., 1-10) in the give and giveall commands. The code parses the range, validates it, and randomly selects an amount within the specified range.

Tab completion enhancements:

  • Updated tab completion for the amount argument in both Give.java and GiveAll.java to suggest common ranges like 1-10 and 1-64, in addition to single values.

Tested in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant