From 2fdb013584e38f8decdc021b81a452ef71301a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=80=90=E7=B9=81=E6=98=9F=E3=80=91=E6=A0=BC=E8=95=BE?= =?UTF-8?q?=E4=BF=AE?= <121101691+Griseo-bh3rd@users.noreply.github.com> Date: Sat, 16 Nov 2024 23:23:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B6=8A=E6=9D=83&?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E9=83=A8=E5=88=86=E8=B0=83=E8=AF=95=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/Commands.cs | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/util/Commands.cs b/util/Commands.cs index 3fac98c..cd45770 100644 --- a/util/Commands.cs +++ b/util/Commands.cs @@ -46,7 +46,6 @@ public bool Execute(ArraySegment arguments, ICommandSender sender, out s } } - [CommandHandler(typeof(ClientCommandHandler))] [CommandHandler(typeof(RemoteAdminCommandHandler))] public class Setbadge : ICommand, IUsageProvider { @@ -398,24 +397,24 @@ public bool Execute(ArraySegment arguments, ICommandSender sender, out s return true; } } - [CommandHandler(typeof(ClientCommandHandler))] - [CommandHandler(typeof(RemoteAdminCommandHandler))] - public class ReloadBadge : ICommand - { - public string Command => "reloadbadge"; - - public string[] Aliases => Array.Empty(); - - public string Description => ""; - - public bool Execute(ArraySegment arguments, ICommandSender sender, out string response) - { - if (arguments.Count == 0) BadgeDatabase.Update(); // 用于临时连接至另一台MySQL服务器,调试版 - else BadgeDatabase.Update(arguments.At(0)); - response = "Done!"; - return true; - } - } + //[CommandHandler(typeof(ClientCommandHandler))] + //[CommandHandler(typeof(RemoteAdminCommandHandler))] + //public class ReloadBadge : ICommand + //{ + // public string Command => "reloadbadge"; + + // public string[] Aliases => Array.Empty(); + + // public string Description => ""; + + // public bool Execute(ArraySegment arguments, ICommandSender sender, out string response) + // { + // if (arguments.Count == 0) BadgeDatabase.Update(); // 用于临时连接至另一台MySQL服务器,调试版 + // else BadgeDatabase.Update(arguments.At(0)); + // response = "Done!"; + // return true; + // } + //} [CommandHandler(typeof(ClientCommandHandler))] public class Callkick : ICommand {