public override void OnEnabled() { instance = this; PLEV = new PluginEvents(this); Exiled.Events.Handlers.Server.RoundStarted += PLEV.RoundStart; Exiled.Events.Handlers.Player.Spawning += PLEV.PlayerSpawn; }
public override void OnDisabled() { Exiled.Events.Handlers.Server.RoundStarted -= PLEV.RoundStart; Exiled.Events.Handlers.Player.Spawning -= PLEV.PlayerSpawn; PLEV = null; instance = null; }
public override void OnEnabled() { instance = this; PLEV = new PluginEvents(this); Exiled.Events.Handlers.Server.RoundStarted += PLEV.RoundStart; Exiled.Events.Handlers.Player.Spawning += PLEV.PlayerSpawn; Exiled.Events.Handlers.Server.SendingConsoleCommand += PLEV.ConsoleCmd; Exiled.Events.Handlers.Scp079.GainingExperience += PLEV.ExpGain; }
public override void OnDisabled() { Exiled.Events.Handlers.Server.RoundStarted -= PLEV.RoundStart; Exiled.Events.Handlers.Player.Spawning -= PLEV.PlayerSpawn; Exiled.Events.Handlers.Server.SendingConsoleCommand -= PLEV.ConsoleCmd; Exiled.Events.Handlers.Scp079.GainingExperience -= PLEV.ExpGain; PLEV = null; instance = null; }
public PluginEvents(Better079Plugin better079Plugin) { this.plugin = better079Plugin; }