Permissions
The nine nodes the plugin declares, what each one gates in commands and menus, and their defaults.
Nine nodes, all declared in the plugin. Eight are granted to everyone by default; the admin node is for operators.
Plugin nodes#
| Permission | Who has it | What it allows |
|---|---|---|
exyliaaimtrainer.use | Everyone | Open the main menu with /aim. |
exyliaaimtrainer.train | Everyone | Start a solo drill (/aim train, /aim drills and the drill buttons). |
exyliaaimtrainer.settings | Everyone | Change target size, distance, colours and the HUD. |
exyliaaimtrainer.duel | Everyone | Send and accept duel requests. Declining one never needs it. |
exyliaaimtrainer.leave | Everyone | No longer checked: leaving a drill or a duel is open to everybody. Kept so existing setups do not break. |
exyliaaimtrainer.profile | Everyone | Open a profile (/aim profile, /aim stats), yours or another player's. |
exyliaaimtrainer.leaderboard | Everyone | Open the leaderboards. |
exyliaaimtrainer.history | Everyone | Open the session and duel history. |
exyliaaimtrainer.drill.* | Everyone | Play every drill whose own drill.<id> node is not set. |
exyliaaimtrainer.drill.<id> | Everyone | Play one drill, alone or as a duel challenger. When not set, follows drill.*. Replace <id> with the drill id, for example exyliaaimtrainer.drill.gridshot. |
exyliaaimtrainer.duelcooldown.<n> | Nobody until granted | Seconds between duel requests for that rank, instead of match.duel-request-cooldown. The lowest granted wins. |
exyliaaimtrainer.history.<n> | Nobody until granted | Rows shown in the session and duel history, instead of history.entries. The highest granted wins. |
exyliaaimtrainer.admin | Admins (op) | Open /aimtraineradmin and run reload. |
Menus check the same nodes#
A menu file can be edited to show any button to anybody, so the check lives behind the click, not in the
file. Every aimtrainer: action carries the node of the command it stands for, in the menus and on the
in-drill hotbar alike. A click without the node does nothing.
| Node | Actions |
|---|---|
exyliaaimtrainer.train | train, replay, and opening the drill list |
exyliaaimtrainer.settings | setting, setting_input, toggle, and opening the settings screen |
exyliaaimtrainer.duel | duel_open, duel_send, format, select_format, rematch, and opening the opponent picker |
exyliaaimtrainer.profile | Opening the profile and the records |
exyliaaimtrainer.leaderboard | leaderboard_drill, leaderboard_sort, leaderboard_category, leaderboard_edition, and opening the boards |
exyliaaimtrainer.history | Opening the session and duel history |
exyliaaimtrainer.use | Opening the main menu, and any other screen open names |
exyliaaimtrainer.admin | Every admin_* action |
The Accept and Decline buttons in a duel request run /aim accept and /aim deny, so Accept checks
exyliaaimtrainer.duel as a command and Decline is never gated. A player without exyliaaimtrainer.train can neither type
/aim train nor click a drill; an aimtrainer:admin_* action bound to an item in a player-facing menu
does nothing for whoever lacks exyliaaimtrainer.admin.
Everybody holds every drill by default. To sell one, deny exyliaaimtrainer.drill.* (or one drill.<id>)
to the default group and grant exyliaaimtrainer.drill.<id> to the rank: a drill whose own node is set
follows it, otherwise it follows drill.*. It is checked when a drill starts and when a duel is
sent, so a challenger needs the drill's node. There are no nodes for formats, colours, styles or arenas.
Numeric nodes#
Two nodes end in a number, exyliaaimtrainer.duelcooldown.<n> and exyliaaimtrainer.history.<n>; they are in the table above. Grant the number you want, for example exyliaaimtrainer.duelcooldown.10 for a ten-second wait between duel requests.
Examples#
Taking duels away from a group while leaving drills in place:
/lp group default permission set exyliaaimtrainer.duel falseHanding the admin screens to staff who are not operators:
/lp group staff permission set exyliaaimtrainer.admin trueWithout the permission, a command answers with the configured no-permission line from messages.yml.
Something missing on this page? Tell us on Discord