73dfb9a612
-added reload command -added macros! (Denoted by {{MACRO}} in server config right now only {{WISDOM}} and {{TOTALPLAYERS}}) -added IP's (tracks and rebans new accounts on same banned ip)! -aliases -reworked database classes -heartbeat gives running version -player banned in find gives last ban reason -reworked rcon yet again
52 lines
953 B
C#
52 lines
953 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace IW4MAdmin
|
|
{
|
|
class Ban
|
|
{
|
|
public Ban(String Reas, String TargID, String From, DateTime time, String ip)
|
|
{
|
|
Reason = Reas;
|
|
npID = TargID;
|
|
bannedByID = From;
|
|
When = time;
|
|
IP = ip;
|
|
}
|
|
|
|
public String getReason()
|
|
{
|
|
return Reason;
|
|
}
|
|
|
|
public String getID()
|
|
{
|
|
return npID;
|
|
}
|
|
|
|
public String getBanner()
|
|
{
|
|
return bannedByID;
|
|
}
|
|
|
|
public String getIP()
|
|
{
|
|
return IP;
|
|
}
|
|
|
|
public String getWhen()
|
|
{
|
|
return When.ToString("yyyy-MM-dd HH:mm:ss"); ;
|
|
}
|
|
|
|
private String Reason;
|
|
private String npID;
|
|
private String bannedByID;
|
|
private DateTime When;
|
|
private String IP;
|
|
|
|
}
|
|
|
|
}
|