public void RegisterEvents() { Singleton = this; Handler = new EventHandlers(this); Config.PinhatasPositions.ParsePositions(); ServerEv.RoundStarted += Handler.OnRoundStarted; ServerEv.RestartingRound += Handler.OnRestartingRound; ServerEv.SendingRemoteAdminCommand += Handler.OnSendingRemoteAdminCommand; PlayerEv.Dying += Handler.OnDying; MapEv.ExplodingGrenade += Handler.OnExploding; PlayerEv.SpawningRagdoll += Handler.OnSpawningRagdoll; PlayerEv.Shooting += Handler.OnShooting; PlayerEv.Hurting += Handler.OnHurting; }
public EventHandlers(Lootorial plugin) => this.plugin = plugin;