Example #1
0
 public override void OnDisabled()
 {
     Exiled.Events.Handlers.Server.RoundEnded   -= Handler.RunWhenRoundEnded;
     Exiled.Events.Handlers.Server.RoundStarted -= Handler.RunWhenRoundStarts;
     Exiled.Events.Handlers.Warhead.Stopping    -= Handler.RunWhenWarheadIsStopped;
     Exiled.Events.Handlers.Warhead.Starting    -= Handler.RunWhenWarheadIsActive;
     Handler = null;
 }
Example #2
0
 public override void OnEnabled()
 {
     Handler = new StayShutEventHandler(this);
     Exiled.Events.Handlers.Warhead.Starting    += Handler.RunWhenWarheadIsActive;
     Exiled.Events.Handlers.Warhead.Stopping    += Handler.RunWhenWarheadIsStopped;
     Exiled.Events.Handlers.Server.RoundStarted += Handler.RunWhenRoundStarts;
     Exiled.Events.Handlers.Server.RoundEnded   += Handler.RunWhenRoundEnded;
 }