Skip to content

Releases: vansencool/CommandUtils

v1.5.0

Choose a tag to compare

@vansencool vansencool released this 08 Jun 03:06

CommandUtils 1.5.0

First release in a year.

Breaking

  • Abstract*, Simple*, and the whole bukkit package moved into a new expansion/ package (expansion.simple, expansion.bukkit).
  • Proxied command senders are gone.
  • CommandPermission is now predicate-based. The old opLevel and string constructors no longer exist.

New

  • Commands now run safely and catch throwable.
  • You can register your own renderers for exception types with ExceptionRenderer / ExceptionRenderers.
  • CommandPermission now has single, and, or, not, world, plus PLAYER_ONLY, CONSOLE_ONLY, OP, ALWAYS, and NEVER.
  • BasicFlagsHelper is an opinionated helper for completing --key and --key value flags inside a greedy string argument, handling offsets, spaces, and multiple flags for you.
  • doubleArg, floatArg, and longArg now have methods that take min and max bounds.

Misc

  • Various small cleanups and fixes.

v1.3.0

Choose a tag to compare

@vansencool vansencool released this 13 Apr 13:55

Bug Fixes 🐛

  • Fixes many issues with suggestions and current argument

Removal and Deprecation⚠

  • SuggestionHelper is now deprecated
  • CommandWrapper#senderTypeString is now obsolete
  • suggestIfCurrentStartsWith was removed, and replaced by suggestIfValueStartsWithCurrent

v1.2.3

Choose a tag to compare

@vansencool vansencool released this 04 Jan 14:32

New Features 🎉

  • New command system built upon CommandUtils itself, inspired by Bukkit's command API
  • More flexible argument creation through CustomArgument
  • Easier suggestion creation, including suggestions that start with the current argument
  • Improved SuggestionsHelper with new methods and fixes
  • Fixed issues in SuggestionsHelper, including returning the input without the command when empty
  • Added new methods to SuggestionsHelper, including just and default methods

⚠ Breaking Change: Legacy Color Codes Removal

LegacyColorsTranslator has been removed due to compatibility issues with Minimessage format. Legacy color codes will no longer work.

Suggested Update:

Recommended Fix:

If you were using legacy color codes, please update your code to use minimessage (or even components.)

v1.2.2

Choose a tag to compare

@vansencool vansencool released this 12 Dec 15:31
  • Small bug fix of double player names in PlayerArgumentType

v1.2.1

Choose a tag to compare

@vansencool vansencool released this 10 Dec 14:37
f3d1f69

v1.2.0

Choose a tag to compare

@vansencool vansencool released this 03 Dec 12:33
73f1325

⚠ Breaking Change: Generic Syntax Update

In this release, the usage of new Argument<>() is no longer valid and will result in a compilation error.

To resolve this issue, replace occurrences of new Argument<>(...) with new Argument(...) in your codebase.

Suggested Update:

  • Before: new Argument<>(...)
  • After: new Argument(...)

Recommended Fix:

Use IntelliJ's Find and Replace feature to apply the change across your project:

  1. Open Edit > Find > Replace in Files....
  2. Search for new Argument<>.
  3. Replace with new Argument.
  4. Hit replace
  5. (Hit confirm if said)
    And you should be good to go!

v1.1.9

Choose a tag to compare

@vansencool vansencool released this 26 Nov 07:36
3fbfdfb
  • Little changes

v1.1.8

Choose a tag to compare

@vansencool vansencool released this 25 Nov 19:06
86ec55c
  • Little fix

v1.1.7

Choose a tag to compare

@vansencool vansencool released this 25 Nov 19:00
64e230a
  • Alot of adds, bug fixes, and performance improvements.

v1.1.6

Choose a tag to compare

@vansencool vansencool released this 05 Nov 16:06
7774deb
  • Better suggestions, and removal of Tooltiper