2017-05-27 18:08:04 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using SharedLibrary;
|
|
|
|
|
|
|
|
|
|
namespace IW4MAdmin
|
|
|
|
|
{
|
|
|
|
|
class PenaltyList : SharedLibrary.Interfaces.IPenaltyList
|
|
|
|
|
{
|
|
|
|
|
public PenaltyList()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AddPenalty(Penalty P)
|
|
|
|
|
{
|
2017-05-29 22:25:49 -04:00
|
|
|
|
Manager.GetInstance().GetClientDatabase().AddBan(P);
|
2017-05-27 18:08:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void RemovePenalty(Penalty P)
|
|
|
|
|
{
|
2017-05-31 01:31:56 -04:00
|
|
|
|
Manager.GetInstance().GetClientDatabase().RemoveBan(P.OffenderID);
|
2017-05-27 18:08:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Penalty> FindPenalties(Player P)
|
|
|
|
|
{
|
|
|
|
|
return Manager.GetInstance().GetClientDatabase().GetClientPenalties(P);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Penalty> AsChronoList(int offset, int count)
|
|
|
|
|
{
|
|
|
|
|
return Manager.GetInstance().GetClientDatabase().GetPenaltiesChronologically(offset, count);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|