From 828afc563adf60e1d535b422a6698b86308f48e3 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 8 Mar 2015 23:28:57 -0500 Subject: [PATCH] Give comfirmation message to Banner Add Unban by database ID ( supplements GUID ) Fixed Wisdom response Added database ID to whoami response Added first time setup for users with no config file default configs updated --- Admin/Command.cs | 7 +++++-- Admin/IW4M ADMIN.csproj | 21 ++++++++++++--------- Admin/Main.cs | 34 ++++++++++++++++++++++++++++++---- Admin/Server.cs | 18 +++++++++--------- Admin/config/maps.cfg | 30 ++++++++++++++++++++++++++++++ Admin/config/messages.cfg | 5 +++++ Admin/config/rules.cfg | 6 ++++++ Admin/config/servers.cfg | 0 8 files changed, 97 insertions(+), 24 deletions(-) create mode 100644 Admin/config/maps.cfg create mode 100644 Admin/config/messages.cfg create mode 100644 Admin/config/rules.cfg create mode 100644 Admin/config/servers.cfg diff --git a/Admin/Command.cs b/Admin/Command.cs index 6dc5214b..938dafdd 100644 --- a/Admin/Command.cs +++ b/Admin/Command.cs @@ -169,7 +169,10 @@ namespace IW4MAdmin E.Target.lastEvent = E; // needs to be fixed String Message = "^1Player Banned: ^5" + E.Target.LastOffense + "^7 (appeal at nbsclan.org)"; if (E.Origin.getLevel() > E.Target.getLevel()) + { E.Target.Ban(Message, E.Origin); + E.Origin.Tell("Successfully banned ^5" + E.Target.getName() + " (^7" + E.Target.getID()); + } else E.Origin.Tell("You cannot ban " + E.Target.getName()); } @@ -182,7 +185,7 @@ namespace IW4MAdmin public override void Execute(Event E) { - if (E.Owner.Unban(E.Data.Trim())) + if (E.Owner.Unban(E.Data.Trim(), E.Target)) E.Origin.Tell("Successfully unbanned " + E.Data.Trim()); else E.Origin.Tell("Unable to find a ban for that GUID"); @@ -196,7 +199,7 @@ namespace IW4MAdmin public override void Execute(Event E) { - String You = String.Format("You are {0} at client spot {1} with xuid {2}. You have connected {3} times and are currently ranked {4}", E.Origin.getName(), E.Origin.getClientNum(), E.Origin.getID(), E.Origin.getConnections(), E.Origin.getLevel()); + String You = String.Format("You are {0} at client spot {1} with xuid {2} and ID {5}. You have connected {3} times and are currently ranked {4}", E.Origin.getName(), E.Origin.getClientNum(), E.Origin.getID(), E.Origin.getConnections(), E.Origin.getLevel(), E.Origin.getDBID()); E.Origin.Tell(You); } diff --git a/Admin/IW4M ADMIN.csproj b/Admin/IW4M ADMIN.csproj index f51bdc64..6f3703c5 100644 --- a/Admin/IW4M ADMIN.csproj +++ b/Admin/IW4M ADMIN.csproj @@ -12,22 +12,23 @@ v2.0 512 - false - C:\Users\Michael\Desktop\IW4MAdmin\ + true + ftp://raidmax.org/IW4M/Admin/ true - Disk - false + Web + true Foreground 7 Days false false true + http://raidmax.org/IW4M/Admin/ IW4M Administration RaidMax LLC + true publish.htm - true - 2 + 3 0.1.0.%2a false true @@ -109,6 +110,10 @@ + + + + @@ -131,9 +136,7 @@ - - - +