Merge branch 'master' of github.com:EggLinks/DanhengServer

This commit is contained in:
StopWuyu
2024-11-09 19:30:11 +08:00
11 changed files with 824 additions and 13 deletions

View File

@@ -26,4 +26,14 @@ public class CommandReload : ICommand
await arg.SendMsg(I18NManager.Translate("Game.Command.Reload.ConfigReloaded",
I18NManager.Translate("Word.Activity")));
}
[CommandMethod("0 videokey")]
public async ValueTask ReloadVideoKey(CommandArg arg)
{
// Reload the videokeys
GameData.VideoKeysConfig = ResourceManager.LoadCustomFile<VideoKeysConfig>("VideoKeys", "VideoKeysConfig") ??
new VideoKeysConfig();
await arg.SendMsg(I18NManager.Translate("Game.Command.Reload.ConfigReloaded",
I18NManager.Translate("Word.VideoKeys")));
}
}