메소드 | 설명 | |
---|---|---|
AddBan ( string ip, string name = "", string uuid = "", string reason = "", bool exceptions = false, string banner = "", string expiration = "" ) : bool |
Adds a ban.
|
|
BanManager ( IDbConnection db ) : System |
Initializes a new instance of the TShockAPI.DB.BanManager class.
|
|
ClearBans ( ) : bool |
Clears bans.
|
|
GetBanByIp ( string ip ) : |
Gets a ban by IP.
|
|
GetBanByName ( string name, bool casesensitive = true ) : |
Gets a ban by name.
|
|
GetBanByUUID ( string uuid ) : |
Gets a ban by UUID.
|
|
GetBans ( ) : List |
Gets a list of bans.
|
|
RemoveBan ( string match, bool byName = false, bool casesensitive = true, bool exceptions = false ) : bool |
Removes a ban.
|
public AddBan ( string ip, string name = "", string uuid = "", string reason = "", bool exceptions = false, string banner = "", string expiration = "" ) : bool | ||
ip | string | Ip. |
name | string | Name. |
uuid | string | UUID. |
reason | string | Reason. |
exceptions | bool | If set to |
banner | string | Banner. |
expiration | string | Expiration date. |
리턴 | bool |
public BanManager ( IDbConnection db ) : System | ||
db | IDbConnection | A valid connection to the TShock database |
리턴 | System |
public GetBanByName ( string name, bool casesensitive = true ) : |
||
name | string | The name. |
casesensitive | bool | Whether to check with case sensitivity. |
리턴 |
public RemoveBan ( string match, bool byName = false, bool casesensitive = true, bool exceptions = false ) : bool | ||
match | string | Match. |
byName | bool | If set to |
casesensitive | bool | If set to |
exceptions | bool | If set to |
리턴 | bool |