Class Ban
A ban is a pointer that represents a banned player arbitrarily.
Inherited Members
Namespace: Slipe.Server.Accounts
Assembly: SlipeServer.dll
Syntax
public sealed class Ban
Constructors
| Improve this Doc View SourceBan(String, String, Player, String, Int32)
Add a ban of a specific IP and/or serial
Declaration
public Ban(string ip, string serial, Player banner, string reason, int seconds)
Parameters
| Type | Name | Description |
|---|---|---|
| String | ip | |
| String | serial | |
| Player | banner | |
| String | reason | |
| Int32 | seconds |
Properties
| Improve this Doc View SourceAdmin
Get and set the nickname of the player that added this ban
Declaration
public string Admin { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
All
Get a list of all bans in this server
Declaration
public static Ban[] All { get; }
Property Value
| Type | Description |
|---|---|
| Ban[] |
Ip
Get the IP of this ban. Can return null if no IP is linked
Declaration
public string Ip { get; }
Property Value
| Type | Description |
|---|---|
| String |
Nickname
Get or set the nickname of the banned player
Declaration
public string Nickname { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Reason
Get or set the ban reason
Declaration
public string Reason { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Serial
Get the serial of this ban. Can return null if no serial is linked
Declaration
public string Serial { get; }
Property Value
| Type | Description |
|---|---|
| String |
TimeStamp
Get the timestamp this ban was added
Declaration
public int TimeStamp { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
UnbanTimeStamp
Get or set the timesteamp this ban was lifted
Declaration
public int UnbanTimeStamp { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
| Improve this Doc View SourceRemove()
Remove this ban without any unbanning player
Declaration
public void Remove()
Remove(Player)
Remove this ban
Declaration
public void Remove(Player player)
Parameters
| Type | Name | Description |
|---|---|---|
| Player | player |
Events
| Improve this Doc View SourceOnAdded
Declaration
public static event Ban.OnAddedHandler OnAdded
Event Type
| Type | Description |
|---|---|
| Ban.OnAddedHandler |
OnRemoved
Declaration
public static event Ban.OnRemoveHandler OnRemoved
Event Type
| Type | Description |
|---|---|
| Ban.OnRemoveHandler |