Skip to content

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().

View the source

Changes the rule scope between 'local' and 'global'

AttributeTypeDescription
AclRule.rulestrID/name of the rule
AclRule.rule_typestr'player' or 'ip'
AclRule.rule_scopestr'local' or 'global'
AclRule.acl_groupstr'ops', 'bans', 'wl', or 'subnets'
AclRule.extra_datadictExtra content (ban reason, IP geolocation, etc.)
AclRule.display_datadict / NonePopulated when the rule is displayed in the rule panel; initially None
AclRule.list_enabledboolWhether the rule is enabled in the server’s Access Control