Skip to content

Permissions

Commands

Use permission checks for execution access, and use startup availability only for shaping the command tree before registration.

  • permission(...)
  • playerOnly()
  • consoleOnly()
  • requires { ... }
  • enabled { ... }
  • ignore()
command("profile") {
permission("daisy.profile")
player {
reply("<gray>Opening your profile.</gray>")
}
}

enabled { ... } is for startup-time inclusion, not per-execution permission logic.

Read next: