IW4M-Admin/Admin/Bans.cs
RaidMax c3bf5bf33a Been a while -- unstable 0.75
-added mask command
-added baninfo command
-added alias command and removed redundant output from `find`
-added rcon command
-added webfront (http://127.0.0.1:1624)
-true skill is officially implemented
-find now shows last connect time
-noise on pm (if gsc_enabled)
-force 8 line chat height (if gsc_enabled)
-tell admins the number of reports on join
-enhanced ban tracking
-ip wait timeout added
-remove report on ban
-can't report yourself
-remove reported players when banned
-fixed rare crash with toadmins backend
-fixed crash when finding player stats that don't exist
-fixed a bug that caused owner command to reactivate only `creator` rank player existed
-fixed a bug that caused certain notifications to be sent to all players
2015-04-09 23:02:12 -05:00

57 lines
1.0 KiB
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("MM/dd/yy HH:mm:ss"); ;
}
public DateTime getTime()
{
return When;
}
private String Reason;
private String npID;
private String bannedByID;
private DateTime When;
private String IP;
}
}