Skip to content

1.2.0

Choose a tag to compare

@Citymonstret Citymonstret released this 07 Dec 19:14

Added

  • Added access to the CloudBrigadierManager from Brigadier-enabled command managers
  • Added parameter injectors (cloud-annotations)
  • Store currently parsing command argument in the command context
  • Added a method to CloudBrigadierManager to enable or disable Brigadier native suggestions for specific argument types
  • Added a method to get the failure reason of SelectorParseExceptions
  • Added some methods to FlagContext to work with flag values as optionals
  • Allow for use of named suggestion providers with @Flags (cloud-annotations)
  • Added CommandExecutionException which wraps any exception thrown during the execution of command handlers. Should be
    handled using CommandManager#registerExceptionHandler, similar to NoSuchCommandException, ArgumentParseException, etc.
  • Added registration state to command managers
  • Added ALLOW_UNSAFE_REGISTRATION ManagerSetting to disable state checks when registering commands
  • Added OVERRIDE_EXISTING_COMMANDS ManagerSetting to allow for overriding of existing commands on supported platforms

Changed

  • Allow for use of @Completions annotation with argument types other than String
  • Allow for use of a BiFunction<C, E, Component> instead of just a Function<E, Component> in MinecraftExceptionHandler

Deprecated

  • Deprecated LockableCommandManager in favor of CommandManager state

Fixed

  • Use the correct default range for Double and Float parsers in the StandardParserRegistry
  • Fix Bukkit alias command suggestions without Brigadier
  • Fix Bukkit command alias registration when using Brigadier
  • Fixed a bug where providing valid input for an argument caused cloud to no longer make suggestions
  • Detect and throw an exception for ambiguous nodes in more cases
  • CloudBrigadierManager no longer forgets the command sender