public override void OnDisabled() { Exiled.Events.Handlers.Server.RespawningTeam -= _infoCommand.OnRespawningTeam; _infoCommand = null; Singleton = null; Translations = null; base.OnDisabled(); }
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(); }