runebook · rune
runebook · rune
manifest: sha256:6aa122d1e145ed197f8b8f8b6c001e356155d8263c80e267a959be1b3d6957e0
rune add @rune/permissions@0.3.2Manage Paper permissions, ranks, and player labels from an in-game GUI or commands.
rune add @rune/permissions
Restart Paper, then use /permissions gui in game. For an existing installation,
run rune update @rune/storage before rune update @rune/permissions.
Upgrade any installed database adapter as well. Existing groups, direct
memberships, and storage settings still work.
Run /permissions gui in game. Players with rune.admin can browse the
manager. Editing requires operator status as well.
Lists support search and pagination. For rules, right-click the node field
to browse registered permissions. Right-click context and duration fields
for presets. Text fields accept chat input for 60 seconds and suppress the
message while the prompt is active. Type !cancel to return to the editor,
or use /permissions input <text> to submit through a command.
/permissions create builder
/permissions weight builder 20
/permissions prefix builder 100 <green>[Builder]</green>
/permissions suffix builder 20 <gray>Architect</gray>
/permissions member Alice builder true
/permissions inspect Alice
Higher label priorities win. By default, Permissions decorates both the
Paper display name and tab list. Team colors and custom chat renderers can
set their own presentation. Use /rune config permissions to turn either
output off. Turn on stack-prefixes or stack-suffixes to display ranked
labels from multiple groups with duplicate text removed.
Use - as the label text to remove the priority slot.
/permissions label "user:Alice" prefix 150 global <gold>[Founder]</gold>
sets a user label. Use "world=hub" to scope a label.
Use group:<group> as the subject for a scoped group label.
/permissions rule builder "example.build.*" allow
/permissions user-rule Alice example.build.delete deny "world=spawn" 2h
/permissions grant Alice builder "server=survival,world=world" 7d
/permissions revoke Alice builder "server=survival,world=world"
/permissions inherit architect builder true
/permissions explain Alice example.build.delete "world=spawn"
Rules and grants accept global, "world=name", "server=name", or a
combined context. Set RUNE_PERMISSIONS_SERVER to a different name for
each Paper process sharing the same database. Accepted durations include
30m, 2h, 7d, and permanent. Commands taking the player
argument accept online names or offline UUIDs. Use unset to remove a
rule in the specified context.
Permission decisions favor direct user rules, then more specific
contexts, more specific nodes, and higher group weight. Denies win equal
matches. Wildcards apply to registered Bukkit permission nodes and
explicit nodes in the same profile. Other Runes can check additional nodes
through the service. Everyone inherits the default group.
/permissions track-set builders builder architect
/permissions promote Alice builders
/permissions demote Alice builders
/permissions primary Alice architect
/permissions audit 10
Tracks update permanent, global membership. They leave scoped and temporary grants in place. The audit log keeps the latest 200 successful edits. Only server operators can modify permissions.
The permissions service (major version 1) exposes groups(uuid, context),
rules(uuid, context), check(uuid, node, context),
explain(uuid, node, context), and meta(uuid, context). The last method
returns the primary group and ordered MiniMessage prefix and suffix arrays.
The base command is /permissions. Commands require rune.admin,
and permission changes also require operator status. The GUI has the same
editing rules.
| Subcommand | Arguments and behavior |
|---|---|
gui, input | Open the manager or submit text to an active prompt. |
create, delete | Pass a group name. Deleting a group cleans up its links, grants, and track entries. The default group is required. |
weight | Pass a group and an integer from -100000 to 100000. |
inherit | Pass a child group, parent group, and optional true or false. |
rule | Pass a group, node, allow|deny|unset, optional context, and optional duration. |
user-rule | Pass a player, node, decision, optional context, and optional duration. |
member | Pass an online player, group, and optional true or false for permanent global membership. |
grant, revoke | Pass a player, group, and optional context. grant also accepts a duration. |
primary | Pass a player and optional group. Omit the group for automatic selection. |
prefix, suffix | Pass a group, priority, and MiniMessage text to set a global label. |
label | Pass a subject, prefix or suffix, priority, context, and text. |
tracks, track-set, track-delete | List tracks, save a named track with its groups in order, or remove a track by name. |
promote, demote | Pass a player and track. |
inspect, explain | Inspect an online player's profile, or pass a player, concrete permission node, and optional context to explain a decision. |
audit | Show recent edits. Pass an optional limit from 1 to 50. |
Set RUNE_PERMISSIONS_STORAGE to local, reuse:<name>, or
connect. For a new connection, install the relevant database adapter
and set RUNE_PERMISSIONS_DB_URL. These options use the shared connection
registry and retain options from previous versions, including a DB URL on
its own. Storage configuration
Changes reach other servers on their next poll, usually within five seconds. After a sustained database outage, Permissions clears the permissions and labels it applied until the database becomes available. Back up your database and restart all servers using it when upgrading the Permissions Rune.