From e39c97a1827907d73e7e3b0200decde9bf63734c Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 16 Jan 2016 17:37:46 -0600 Subject: [PATCH] fixed a mistake in kick! --- Admin/Server.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Admin/Server.cs b/Admin/Server.cs index 83f4cc4b2..dae206466 100644 --- a/Admin/Server.cs +++ b/Admin/Server.cs @@ -838,7 +838,7 @@ namespace IW4MAdmin return false; } - public override void Warn(string Reason, Player Target, Player Origin) + public override void Warn(String Reason, Player Target, Player Origin) { Penalty newPenalty = new Penalty(Penalty.Type.Warning, SharedLibrary.Utilities.stripColors(Reason), Target.npID, Origin.npID, DateTime.Now, Target.IP); clientDB.addBan(newPenalty); @@ -851,12 +851,12 @@ namespace IW4MAdmin Target.Kick("You were kicked for too many warnings!", Origin); } - public override void Kick(string Reason, Player Target, Player Origin) + public override void Kick(String Reason, Player Target, Player Origin) { if (Target.clientID > -1) { String Message = "^1Player Kicked: ^5" + Reason + " ^1Admin: ^5" + Origin.Name; - Penalty newPenalty = new Penalty(Penalty.Type.Kick, SharedLibrary.Utilities.stripColors(Reason.Split(':')[1]), Target.npID, Origin.npID, DateTime.Now, Target.IP); + Penalty newPenalty = new Penalty(Penalty.Type.Kick, SharedLibrary.Utilities.stripColors(Reason), Target.npID, Origin.npID, DateTime.Now, Target.IP); clientDB.addBan(newPenalty); foreach (SharedLibrary.Server S in Program.getServers()) // make sure bans show up on the webfront S.Bans = S.clientDB.getBans(); @@ -864,7 +864,7 @@ namespace IW4MAdmin } } - public override void tempBan(string Reason, Player Target, Player Origin) + public override void tempBan(String Reason, Player Target, Player Origin) { if (Target.clientID > -1) {