Skip to content

Commit

Permalink
fix: 修复越权&注释部分调试命令
Browse files Browse the repository at this point in the history
  • Loading branch information
Griseo-bh3rd committed Nov 16, 2024
1 parent 36f5b8b commit 2fdb013
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions util/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
}

}
[CommandHandler(typeof(ClientCommandHandler))]
[CommandHandler(typeof(RemoteAdminCommandHandler))]
public class Setbadge : ICommand, IUsageProvider
{
Expand Down Expand Up @@ -398,24 +397,24 @@ public bool Execute(ArraySegment<string> 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<string>();

public string Description => "";

public bool Execute(ArraySegment<string> 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<string>();

// public string Description => "";

// public bool Execute(ArraySegment<string> 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
{
Expand Down

0 comments on commit 2fdb013

Please sign in to comment.