Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.Networking.BanList Class Reference

Public Member Functions

 BanList ()
 
bool IsBanned (Endpoint endpoint, out string reason)
 
bool IsBanned (Address address, out string reason)
 
bool IsBanned (AccountId accountId, out string reason)
 
bool IsBanned (AccountInfo accountInfo, out string reason)
 
void BanPlayer (string name, Endpoint endpoint, string reason, TimeSpan? duration)
 
void BanPlayer (string name, Either< Address, AccountId > addressOrAccountId, string reason, TimeSpan? duration)
 
void UnbanPlayer (Endpoint endpoint)
 
void UnbanPlayer (Either< Address, AccountId > addressOrAccountId)
 
void Save ()
 
void ServerAdminWrite (IWriteMessage outMsg, Client c)
 
bool ServerAdminRead (IReadMessage incMsg, Client c)
 

Properties

IReadOnlyList< BannedPlayerBannedPlayers [get]
 
IEnumerable< string > BannedNames [get]
 
IEnumerable< Either< Address, AccountId > > BannedAddresses [get]
 

Constructor & Destructor Documentation

◆ BanList()

Barotrauma.Networking.BanList.BanList ( )

Member Function Documentation

◆ BanPlayer() [1/2]

void Barotrauma.Networking.BanList.BanPlayer ( string name,
Either< Address, AccountId > addressOrAccountId,
string reason,
TimeSpan? duration )

◆ BanPlayer() [2/2]

void Barotrauma.Networking.BanList.BanPlayer ( string name,
Endpoint endpoint,
string reason,
TimeSpan? duration )

◆ IsBanned() [1/4]

bool Barotrauma.Networking.BanList.IsBanned ( AccountId accountId,
out string reason )

◆ IsBanned() [2/4]

bool Barotrauma.Networking.BanList.IsBanned ( AccountInfo accountInfo,
out string reason )

◆ IsBanned() [3/4]

bool Barotrauma.Networking.BanList.IsBanned ( Address address,
out string reason )

◆ IsBanned() [4/4]

bool Barotrauma.Networking.BanList.IsBanned ( Endpoint endpoint,
out string reason )

◆ Save()

void Barotrauma.Networking.BanList.Save ( )

◆ ServerAdminRead()

bool Barotrauma.Networking.BanList.ServerAdminRead ( IReadMessage incMsg,
Client c )

◆ ServerAdminWrite()

void Barotrauma.Networking.BanList.ServerAdminWrite ( IWriteMessage outMsg,
Client c )

◆ UnbanPlayer() [1/2]

void Barotrauma.Networking.BanList.UnbanPlayer ( Either< Address, AccountId > addressOrAccountId)

◆ UnbanPlayer() [2/2]

void Barotrauma.Networking.BanList.UnbanPlayer ( Endpoint endpoint)

Property Documentation

◆ BannedAddresses

IEnumerable<Either<Address, AccountId> > Barotrauma.Networking.BanList.BannedAddresses
get

◆ BannedNames

IEnumerable<string> Barotrauma.Networking.BanList.BannedNames
get

◆ BannedPlayers

IReadOnlyList<BannedPlayer> Barotrauma.Networking.BanList.BannedPlayers
get

The documentation for this class was generated from the following files: