Show / Hide Table of Contents

Class Ban

A ban is a pointer that represents a banned player arbitrarily.

Inheritance
Object
Ban
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Accounts
Assembly: SlipeServer.dll
Syntax
public sealed class Ban

Constructors

| Improve this Doc View Source

Ban(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 Source

Admin

Get and set the nickname of the player that added this ban

Declaration
public string Admin { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

All

Get a list of all bans in this server

Declaration
public static Ban[] All { get; }
Property Value
Type Description
Ban[]
| Improve this Doc View Source

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
| Improve this Doc View Source

Nickname

Get or set the nickname of the banned player

Declaration
public string Nickname { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Reason

Get or set the ban reason

Declaration
public string Reason { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

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
| Improve this Doc View Source

TimeStamp

Get the timestamp this ban was added

Declaration
public int TimeStamp { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

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 Source

Remove()

Remove this ban without any unbanning player

Declaration
public void Remove()
| Improve this Doc View Source

Remove(Player)

Remove this ban

Declaration
public void Remove(Player player)
Parameters
Type Name Description
Player player

Events

| Improve this Doc View Source

OnAdded

Declaration
public static event Ban.OnAddedHandler OnAdded
Event Type
Type Description
Ban.OnAddedHandler
| Improve this Doc View Source

OnRemoved

Declaration
public static event Ban.OnRemoveHandler OnRemoved
Event Type
Type Description
Ban.OnRemoveHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX