Example #1
0
        private static void OnInitialize(EventArgs args)
        {
            Commands.ChatCommands.Add(new Command("boss.root", BossCommands.BossCommand, "boss")
            {
                HelpText =
                    "Toggles automatic boss spawns; Reloads the configuration; Lists bosses and minions spawned by the plugin"
            });

            var configPath = Path.Combine(TShock.SavePath, "BossConfig.json");

            (config = Config.Read(configPath)).Write(configPath);

            Timers = new BossTimer();
        }
Example #2
0
        private static void OnInitialize(EventArgs args)
        {
            Commands.ChatCommands.Add(new Command("boss.root", BossCommands.BossCommand, "boss")
            {
                HelpText =
                    "Toggles automatic boss spawns; Reloads the configuration; Lists bosses and minions spawned by the plugin"
            });

            var configPath = Path.Combine(TShock.SavePath, "BossConfig.json");
            (config = Config.Read(configPath)).Write(configPath);

            Timers = new BossTimer();
        }