mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
23 lines
682 B
C#
23 lines
682 B
C#
using EggLink.DanhengServer.Data;
|
|
using EggLink.DanhengServer.Data.Custom;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.Command.Cmd
|
|
{
|
|
[CommandInfo("reload", "重载服务器卡池", "/reload", permission:"egglink.manage")]
|
|
public class CommandReload : ICommand
|
|
{
|
|
[CommandDefault]
|
|
public void Reload(CommandArg arg)
|
|
{
|
|
// Reload the banners
|
|
GameData.BannersConfig = ResourceManager.LoadCustomFile<BannersConfig>("Banner", "Banners") ?? new();
|
|
arg.SendMsg("已重新载入卡池数据");
|
|
}
|
|
}
|
|
}
|