Skip to content

fix: 修复越权&注释部分调试命令 #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading