public override void UnregisterEvents() { EHandlers.Player.Hurting -= player.OnHurting; EHandlers.Player.Dying -= player.OnDying; EHandlers.Player.ChangingItem -= player.OnItemChanged; player = null; server = null; }
public override void RegisterEvents() { player = new Handlers.Player(); server = new Handlers.Server(); EHandlers.Player.Hurting += player.OnHurting; EHandlers.Player.Dying += player.OnDying; EHandlers.Player.ChangingItem += player.OnItemChanged; }