public static void OnProgramFinished() { PluginManager.DisablePlugins(); //Close the logging if set ProgramLog.Close(); // if (Tools.WriteClose != null) // Tools.WriteClose.Invoke(); }
//[Hook(HookOrder.NORMAL)] //void OnPlayerAuthenticationChanged(ref HookContext ctx, ref HookArgs.PlayerAuthenticationChanged args) //{ // if (Terraria.Main.ServerSideCharacter) // { // var cfg = ServerCharacters.CharacterManager.LoadPlayerData(ctx.Player, true); // if (cfg != null) // { // cfg.ApplyToPlayer(ctx.Player); // } // } //} void OnLogFinished() { Thread.Sleep(500); ProgramLog.Log("Log end."); ProgramLog.Close(); }