Struct ChatCommandRegistration
A registered slash command and the minimum access level allowed to run it.
public struct ChatCommandRegistration
- Inherited Members
Fields
Func
Handler invoked when an authorised character runs the command.
public ChatCommand Func
Field Value
MinimumAccessLevel
Lowest AccessLevel permitted to run this command.
public AccessLevel MinimumAccessLevel
Field Value
Remarks
Enforced server-side in TryParseCommand(string, IPlayerCharacter, ChatBroadcast) against the character's own AccessLevel, which is loaded from the character row — never from anything the client sends. The client does receive its own access level in the spawn payload, but only so a UI can hide what it cannot use; nothing on the client is trusted here.