Repository navigation
v3.5.0
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
ExecutionContextdirectly and reuses parse results. - Added
ParseResultpipeline without changes to the API and improved optional argument handling. - Removed old parameter resolution chain system (
ParameterValueAssignerand 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
TargetSelectorparsing flow for Bukkit target selectors. - Fixed selection logic bug in
SelectionTypenearest-player resolution (senderassignment 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 (
ExecutionContextflow, tree parsing, optional handling). - Revalidate custom argument types and advanced command tree extensions against v3.5.0 behavior.