Exemple #1
0
        public void Dispose()
        {
            lib.MyCore.CharacterFilter.Logoff -= Logoff_Request;
            lib.MyCore.ChatBoxMessage         -= Logoff_Request2;
            PluginCore.LngTmr.Tick            -= Logoff_Tick;

            Remote.Dispose();
            Detection.Dispose();
            Inventory.Dispose();
            Components.Dispose();
            Vitae.Dispose();
            Death.Dispose();

            lib.LoggingInstance--;
        }
Exemple #2
0
        public void LogInit()
        {
            if (lib.LoggingInstance < 1)
            {
                PluginCore.LngTmr.Tick            += Logoff_Tick;
                lib.MyCore.CharacterFilter.Logoff += Logoff_Request;
                lib.MyCore.ChatBoxMessage         += Logoff_Request2;
                Vitae.VitaeInit();
                Death.DeathInit();
                Components.CompsInit();
                Inventory.InventoryInit();
                Detection.DetectionInit();
                Remote.RemoteInit();

                lib.LoggingInstance++;
            }
        }