Ban
endstone.ban
¶
IpBanList
¶
Represents a ban list containing banned IP addresses.
PlayerBanEntry
¶
Bases: BanEntry
Represents a ban entry for a player.
PlayerBanList
¶
Represents a ban list containing banned players.
entries
property
¶
entries: list[PlayerBanEntry]
Gets a vector of pointers to entries in the ban list.
add_ban
¶
add_ban(
name: str,
uuid: UUID | None = None,
xuid: str | None = None,
reason: str | None = None,
expires: datetime | None = None,
source: str | None = None,
) -> PlayerBanEntry
Adds a ban to this list, or updates an existing one.
get_ban_entry
¶
get_ban_entry(
name: str,
uuid: UUID | None = None,
xuid: str | None = None,
) -> PlayerBanEntry
Gets a BanEntry by player name, UUID, or XUID.
is_banned
¶
Checks if a BanEntry exists for the target by name, UUID, or XUID.