public override void OnDisabled() { ServerEvent.WaitingForPlayers -= handler.OnWaitingForPlayers; PlayerEvent.Dying -= handler.OnPlayerDying; MapEvent.ExplodingGrenade -= handler.OnExploding; Singleton = null; handler = null; }
public override void OnEnabled() { Singleton = this; handler = new Handler(this); ServerEvent.WaitingForPlayers += handler.OnWaitingForPlayers; PlayerEvent.Dying += handler.OnPlayerDying; MapEvent.ExplodingGrenade += handler.OnExploding; }
public Handler(EFE plugin) => this.plugin = plugin;