コード例 #1
0
ファイル: AntiSpam.cs プロジェクト: Exodius-GG/AntiSpam
        void OnInitialize(EventArgs e)
        {
            string path = Path.Combine(TShock.SavePath, "antispamconfig.json");

            if (File.Exists(path))
            {
                Config = Config.Read(path);
            }
            Config.Write(path);
        }
コード例 #2
0
ファイル: AntiSpam.cs プロジェクト: xavierlvll/AntiSpam
        void OnInitialize(EventArgs e)
        {
            Commands.ChatCommands.Add(new Command("antispam.reload", Reload, "asreload"));

            string path = Path.Combine(TShock.SavePath, "antispamconfig.json");

            if (File.Exists(path))
            {
                Config = Config.Read(path);
            }
            Config.Write(path);
        }