From a56f38664480812df418ed458634de16004ced37 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Wed, 15 Nov 2017 15:04:13 -0600 Subject: [PATCH] Added CommandArgument class to generate syntax for commands. changed Command constructor tweaked help command /pubbans is working properly now plugins properties changed to expression --- Admin/Manager.cs | 64 ++-- Admin/PenaltyList.cs | 4 +- Admin/Server.cs | 3 +- Admin/WebService.cs | 8 +- Admin/lib/SharedLibrary.dll | Bin 112128 -> 117248 bytes Admin/webfront/main.css | 10 +- Plugins/EventAPI/Plugin.cs | 28 +- Plugins/FastRestart/Plugin.cs | 4 +- Plugins/SimpleStats/Plugin.cs | 31 +- Plugins/SimpleStats/TrustedGroupCommands.cs | 4 +- Plugins/Tests/Plugin.cs | 4 +- Plugins/VoteMap/Plugin.cs | 44 +-- Plugins/Welcome/Plugin.cs | 24 +- SharedLibrary/Command.cs | 28 +- SharedLibrary/Commands/NativeCommands.cs | 317 +++++++++++++++++--- SharedLibrary/Database.cs | 4 +- SharedLibrary/Penalty.cs | 3 +- 17 files changed, 391 insertions(+), 189 deletions(-) diff --git a/Admin/Manager.cs b/Admin/Manager.cs index 7f97c135..a0dc619f 100644 --- a/Admin/Manager.cs +++ b/Admin/Manager.cs @@ -146,39 +146,39 @@ namespace IW4MAdmin #region COMMANDS if ((ClientDatabase as ClientsDB).GetOwner() == null) - Commands.Add(new COwner("owner", "claim ownership of the server", "o", Player.Permission.User, 0, false)); + Commands.Add(new COwner()); - Commands.Add(new CQuit("quit", "quit IW4MAdmin", "q", Player.Permission.Owner, 0, false)); - Commands.Add(new CKick("kick", "kick a player by name. syntax: !kick .", "k", Player.Permission.Trusted, 2, true)); - Commands.Add(new CSay("say", "broadcast message to all players. syntax: !say .", "s", Player.Permission.Moderator, 1, false)); - Commands.Add(new CTempBan("tempban", "temporarily ban a player for for specified time (defaults to 1 hour). syntax: !tempban