Fix debug command i18n keys

This commit is contained in:
lvjia
2026-04-28 14:05:32 +08:00
parent f6204134a9
commit 2f8d0c6afc

View File

@@ -5,7 +5,7 @@ using MikuSB.Internationalization;
namespace MikuSB.GameServer.Command.Commands; namespace MikuSB.GameServer.Command.Commands;
[CommandInfo("debug", "Debug packet output", "/debug [on|off|simple|detail|file]", ["dbg"], [PermEnum.Admin, PermEnum.Support])] [CommandInfo("debug", "Game.Command.Debug.Desc", "Game.Command.Debug.Usage", ["dbg"], [PermEnum.Admin, PermEnum.Support])]
public class CommandDebug : ICommands public class CommandDebug : ICommands
{ {
private static readonly Logger Logger = new("CommandManager"); private static readonly Logger Logger = new("CommandManager");
@@ -22,7 +22,7 @@ public class CommandDebug : ICommands
"simple" => EnableSimpleDebug(serverOption), "simple" => EnableSimpleDebug(serverOption),
"detail" => EnableDetailDebug(serverOption), "detail" => EnableDetailDebug(serverOption),
"file" => ToggleDebugFile(serverOption), "file" => ToggleDebugFile(serverOption),
_ => "Usage: /debug [on|off|simple|detail|file]" _ => I18NManager.Translate("Game.Command.Debug.Usage")
}; };
Logger.Info(message); Logger.Info(message);