From c396428282547b50abc2178794b2c85594a1962c Mon Sep 17 00:00:00 2001 From: RaidMax Date: Fri, 15 Jan 2016 16:15:39 -0600 Subject: [PATCH] VERSION 1.1 CHANGELOG: -fixed ban sorting ( and an overlooked bug ) -added kicks and temp-bans to penalty list -bans are now named penalties -readded pubbans page http://127.0.0.1:1624/pubbans -updated RepZ profile link --- Admin/Command.cs | 8 +++--- Admin/IW4M ADMIN.csproj | 12 ++------ Admin/Main.cs | 2 +- Admin/Server.cs | 37 ++++++++++++++++++++----- Admin/version.txt | 12 ++++++-- Admin/webfront/bans.html | 2 +- Admin/webfront/header.html | 4 +-- IW4M Admin.sln | 7 +++-- SharedLibrary/Ban.cs | 13 +++++++-- SharedLibrary/Database.cs | 18 +++++++----- SharedLibrary/Player.cs | 8 +++--- SharedLibrary/Server.cs | 19 ++++--------- SharedLibrary/SharedLibrary.csproj | 2 +- SharedLibrary/Utilities.cs | 15 ++++++++++ Webfront Plugin/Framework.cs | 38 +++++++++++++++++++------- Webfront Plugin/Webfront Plugin.csproj | 2 +- 16 files changed, 133 insertions(+), 66 deletions(-) diff --git a/Admin/Command.cs b/Admin/Command.cs index 79f72e86a..1d7c7432e 100644 --- a/Admin/Command.cs +++ b/Admin/Command.cs @@ -38,7 +38,7 @@ namespace IW4MAdmin String Message = String.Format("^1WARNING ^7[^3{0}^7]: ^3{1}^7, {2}", E.Target.Warnings, E.Target.Name, E.Target.lastOffense); E.Owner.Broadcast(Message); if (E.Target.Warnings >= 4) - E.Target.Kick("You were kicked for too many warnings!"); + E.Target.Kick("You were kicked for too many warnings!", E.Origin); } } } @@ -65,7 +65,7 @@ namespace IW4MAdmin E.Target.lastOffense = SharedLibrary.Utilities.removeWords(E.Data, 1); String Message = "^1Player Kicked: ^5" + E.Target.lastOffense + " ^1Admin: ^5" + E.Origin.Name; if (E.Origin.Level > E.Target.Level) - E.Target.Kick(Message); + E.Target.Kick(Message, E.Origin); else E.Origin.Tell("You cannot kick " + E.Target.Name); } @@ -90,7 +90,7 @@ namespace IW4MAdmin E.Target.lastOffense = SharedLibrary.Utilities.removeWords(E.Data, 1); String Message = "^1Player Temporarily Banned: ^5" + E.Target.lastOffense + "^7 (1 hour)"; if (E.Origin.Level > E.Target.Level) - E.Target.tempBan(Message); + E.Target.tempBan(Message, E.Origin); else E.Origin.Tell("You cannot temp ban " + E.Target.Name); } @@ -596,7 +596,7 @@ namespace IW4MAdmin return; } - Ban B = E.Owner.Bans.Find(b => b.npID.Equals(E.Target.npID)); + Penalty B = E.Owner.Bans.Find(b => b.npID.Equals(E.Target.npID)); if (B == null) { diff --git a/Admin/IW4M ADMIN.csproj b/Admin/IW4M ADMIN.csproj index e26d4881e..b19b49b17 100644 --- a/Admin/IW4M ADMIN.csproj +++ b/Admin/IW4M ADMIN.csproj @@ -77,7 +77,7 @@ - OnBuildSuccess + OnOutputUpdated false @@ -300,14 +300,8 @@ - cd "$(TargetDir)" -del *.application -del *.pdb -del *.dll -del app.config -del *.manifest -del *.log -xcopy /Y /I /E "*" "$(SolutionDir)Release Build" + +