Пример #1
0
 public override void OnDisabled()
 {
     Exiled.Events.Handlers.Server.RespawningTeam -= _infoCommand.OnRespawningTeam;
     _infoCommand = null;
     Singleton    = null;
     Translations = null;
     base.OnDisabled();
 }
Пример #2
0
        public override void OnEnabled()
        {
            Singleton    = this;
            Translations = new Translations();
            _infoCommand = new InfoCommand();
            Exiled.Events.Handlers.Server.RespawningTeam += _infoCommand.OnRespawningTeam;
            if (!Manager.RegisterCommand(_infoCommand))
            {
                OnDisabled();
            }

            base.OnEnabled();
        }