berconpy.ban.Ban¶
- class berconpy.ban.Ban(cache, index, id, duration, reason)¶
Bases:
ABCRepresents a GUID/IP ban on the server.
Methods
unban()Removes this ban from the server.
Attributes
The index assigned to this ban by the server.
The player identifier this ban affects.
The duration of the ban in minutes.
The reason given for the ban.
The cache that created this object.
Returns the client associated with the cache.
- abstract unban()¶
Removes this ban from the server.
- property cache: RCONClientCache¶
The cache that created this object.
- property client: RCONClient | None¶
Returns the client associated with the cache.
-
duration:
int|None¶ The duration of the ban in minutes.
If the ban has expired, this will be
-1. If the ban is permanent, this will beNone.
-
id:
str¶ The player identifier this ban affects.
This can be either a BattlEye GUID or an IP address.