Registration
Registration
Section titled “Registration”Commands
DaisyCore registers commands by discovering providers at startup instead of making you wire the tree manually.
@DaisyCommandSetobject ProfileCommands : DaisyCommandGroup({ command("profile") { player { reply("Hello from DaisyCore.") } }})- mark providers with
@DaisyCommandSet - keep the command tree inside
DaisyCommandGroup - let DaisyCore discover and register the active command set during startup
Read next: