mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Define scenario permissions for legacy role actions
The role system is moving onto clusterio's own roles and permissions, which requires every in game action to exist as a real permission rather than a bare string held only by the lua config. Adds a permission for each of the 104 actions and 7 flags used by the legacy role config. Names are derived from the legacy action by a deterministic transform, exported so the lua side can apply the same mapping and keep existing call sites working. Command descriptions are taken from the existing locale entries so they match what players already see. Actions held by the Guest role are marked grantByDefault, since the in game default role and clusterio's default role are the same concept. Role management actions have no scenario permission; they map onto core.user.update_roles and core.role.list instead. Also corrects the /unjail description, which was a copy of /jail. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -89,7 +89,7 @@ jailed=__1__ was jailed by __2__. Reason: __3__
|
||||
already-jailed=__1__ is already jailed.
|
||||
|
||||
[exp-commands_unjail]
|
||||
description=Puts a player into jail and removes all other roles.
|
||||
description=Removes a player from jail and restores their previous roles.
|
||||
arg-player=Player to unjail.
|
||||
unjailed=__1__ was unjailed by __2__.
|
||||
not-jailed=__1__ is not currently jailed.
|
||||
|
||||
Reference in New Issue
Block a user