IW4M-Admin/Admin/Bans.cs
RaidMax 73dfb9a612 -close config files after reading oops
-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
2015-03-13 18:40:16 -05:00

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;
}
}