Content generated with AI — it may contain mistakes.

Permissions

The nine nodes the plugin declares, what each one gates in commands and menus, and their defaults.

Page 14 of 252 min read

Nine nodes, all declared in the plugin. Eight are granted to everyone by default; the admin node is for operators.

Plugin nodes#

PermissionWho has itWhat it allows
exyliaaimtrainer.useEveryoneOpen the main menu with /aim.
exyliaaimtrainer.trainEveryoneStart a solo drill (/aim train, /aim drills and the drill buttons).
exyliaaimtrainer.settingsEveryoneChange target size, distance, colours and the HUD.
exyliaaimtrainer.duelEveryoneSend and accept duel requests. Declining one never needs it.
exyliaaimtrainer.leaveEveryoneNo longer checked: leaving a drill or a duel is open to everybody. Kept so existing setups do not break.
exyliaaimtrainer.profileEveryoneOpen a profile (/aim profile, /aim stats), yours or another player's.
exyliaaimtrainer.leaderboardEveryoneOpen the leaderboards.
exyliaaimtrainer.historyEveryoneOpen the session and duel history.
exyliaaimtrainer.drill.*EveryonePlay every drill whose own drill.<id> node is not set.
exyliaaimtrainer.drill.<id>EveryonePlay 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 grantedSeconds between duel requests for that rank, instead of match.duel-request-cooldown. The lowest granted wins.
exyliaaimtrainer.history.<n>Nobody until grantedRows shown in the session and duel history, instead of history.entries. The highest granted wins.
exyliaaimtrainer.adminAdmins (op)Open /aimtraineradmin and run reload.

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.

NodeActions
exyliaaimtrainer.traintrain, replay, and opening the drill list
exyliaaimtrainer.settingssetting, setting_input, toggle, and opening the settings screen
exyliaaimtrainer.duelduel_open, duel_send, format, select_format, rematch, and opening the opponent picker
exyliaaimtrainer.profileOpening the profile and the records
exyliaaimtrainer.leaderboardleaderboard_drill, leaderboard_sort, leaderboard_category, leaderboard_edition, and opening the boards
exyliaaimtrainer.historyOpening the session and duel history
exyliaaimtrainer.useOpening the main menu, and any other screen open names
exyliaaimtrainer.adminEvery 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.

Drills are a rank perk, arenas and formats are not

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 false

Handing the admin screens to staff who are not operators:

/lp group staff permission set exyliaaimtrainer.admin true

Without the permission, a command answers with the configured no-permission line from messages.yml.

Something missing on this page? Tell us on Discord