Esempio n. 1
0
 public override void OnEnabled()
 {
     eHandler                = new eventHandlers(this);
     Server.RoundStarted    += eHandler.onRoundStart;
     Player.TriggeringTesla += eHandler.PlayerTesla;
     Log.Info("Tesla Gate Control V1.1.0 'The Swipening' has started Successfully.");
 }
Esempio n. 2
0
 public override void OnDisabled()
 {
     // Make it dynamically updatable.
     // We do this by removing the listener for the event and then nulling the event handler.
     // The more events the more times you have to do this for each one.
     Player.TriggeringTesla -= eHandler.PlayerTesla;
     eHandler = null;
 }