Migrate from DaisyCommand
Migrate from DaisyCommand
Section titled “Migrate from DaisyCommand”The main mental model stays the same: concise DSL, typed arguments, and readable execution blocks.
What changed
Section titled “What changed”- DaisyCore is now the home for commands
- plugin bootstrap happens through
DaisyPlatform - command sets are discovered from annotated command groups
- shared lang/config rendering can be installed once through
messages(...)
New normal path
Section titled “New normal path”- Move your commands into one or more
DaisyCommandGroupobjects. - Annotate each command group with
@DaisyCommandSet. - Enable
commands()inDaisyPlatform.create { ... }.
Recommended migration targets
Section titled “Recommended migration targets”DaisyCommandProviderwith manualcommands(): List<DaisyCommand>->DaisyCommandGroupexecutePlayer { ... }->player { ... }getString(...) ?: return->stringOr(...)orargOr(...)- plugin-local lang helper wrappers ->
replyLang(...),lang(...),loading(),failLang(...)