AclRule
An AclRule represents a named entry in an ACL manager’s operators, bans, whitelist, or subnet lists. Instances carry the rule’s scope and optional metadata, and are returned by methods such as acl.get_rule().
Methods
Section titled “Methods”rule.set_scope(is_global=False)
Section titled “rule.set_scope(is_global=False)”Changes the rule scope between 'local' and 'global'
Attributes
Section titled “Attributes”| Attribute | Type | Description |
|---|---|---|
AclRule.rule | str | ID/name of the rule |
AclRule.rule_type | str | 'player' or 'ip' |
AclRule.rule_scope | str | 'local' or 'global' |
AclRule.acl_group | str | 'ops', 'bans', 'wl', or 'subnets' |
AclRule.extra_data | dict | Extra content (ban reason, IP geolocation, etc.) |
AclRule.display_data | dict / None | Populated when the rule is displayed in the rule panel; initially None |
AclRule.list_enabled | bool | Whether the rule is enabled in the server’s Access Control |