Skip to content

v3.5.0

Choose a tag to compare

@Mqzn Mqzn released this 16 Apr 20:14
· 31 commits to master since this release

Imperat v3.5.0

✅ Notable fixes

  • Fixed method-level permission enforcement coverage (with regression tests).
  • Improved closest-usage detection behavior in syntax failures.
  • Improved greedy argument + switch interaction behavior in parsing logic.
  • Improved internal null-safety/edge-case handling in permission and suggestion paths.

🚀 Other Highlights

Help system redesign (new API model)

Imperat’s help pipeline was refactored into a cleaner and more extensible architecture:

  • New query → render → send flow (CommandHelp, HelpResult, HelpRenderer, HelpSender).
  • Added built-in text and Adventure renderers (TextHelpRenderer, AdventureHelpRenderer).
  • Removed legacy theme/coordinator component model in favor of a simpler rendering API.

Why it matters: easier customization and better separation of help data from presentation/output.


Command tree execution + parsing refactor

Large internal execution refactor with better deterministic behavior:

  • Tree execution now works with ExecutionContext directly and reuses parse results.
  • Added ParseResult pipeline without changes to the API and improved optional argument handling.
  • Removed old parameter resolution chain system (ParameterValueAssigner and related flow handlers).
  • Improved invalid usage formatting and closest-usage output consistency.

Why it matters: more stable command resolution, fewer edge-case parsing issues, and better maintainability.


Auto-completion improvements (major)

Autocomplete behavior was significantly improved:

  • Better handling of trailing spaces and argument slicing.
  • More accurate optional-argument overlap suggestions.
  • Better literal/alias suggestion behavior.
  • Improved permission-aware suggestions (including method/pathway permission contexts).
  • New completion caches for better performance in large command trees.
  • Better flag-aware completion behavior and filtering.

Why it matters: cleaner UX for end users and improved performance/consistency for large command sets.


Flag improvements.

Important correctness fixes in command argument handling:

  • Refined flag lookup/normalization and faster flag resolution path.
    Why it matters: avoids incorrect target resolution and improves command reliability in production.

Bukkit-specific improvements

  • Improved TargetSelector parsing flow for Bukkit target selectors.
  • Fixed selection logic bug in SelectionType nearest-player resolution (sender assignment bug fixed).
  • Added a default suggestion provider for online players in Bukkit config builder (visibility-aware).
  • Improved Brigadier alias handling and alias suggestion coverage (tested).
  • Syntax/error response formatting improvements (color/error channel consistency in tests and behavior).

Why it matters: better command UX and more predictable suggestions on Bukkit/Paper servers.



⚠️ Migration notes

If you customized/help-themed old APIs:

  • Legacy help-theme/coordinator based extension points were removed/refactored.
  • Migrate custom help output to the new renderer/sender model (HelpRenderer + HelpSender + CommandHelp.show/render).
  • Review any integrations relying on old help/theme/* classes and old help component types.

If you maintain deep internals/extensions:

  • Execution/parsing internals changed substantially (ExecutionContext flow, tree parsing, optional handling).
  • Revalidate custom argument types and advanced command tree extensions against v3.5.0 behavior.