berconpy.Ban¶
- class berconpy.Ban(client, index, id, duration, reason)¶
Represents a GUID/IP ban on the server.
Methods
unban()Removes this ban from the server.
Attributes
The client that created this object.
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.
- async unban()¶
Removes this ban from the server.
-
client:
AsyncRCONClient¶ The client that created this object.
-
duration:
Optional[int]¶ 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.