public override void OnDisabled() { Server.WaitingForPlayers -= eventHandlers.OnWaitingForPlayers; eventHandlers = null; base.OnDisabled(); }
public override void OnEnabled() { eventHandlers = new EventHandlers(); Server.WaitingForPlayers += eventHandlers.OnWaitingForPlayers; base.OnEnabled(); }