internal void InvokePlayerBanEvent(Player bannedPlayer, Player issuer, ref long duration, ref string reason, ref bool allow) { var ev = new PlayerBanEventArgs { Allow = allow, BanDuration = duration, Issuer = issuer, Reason = reason, BannedPlayer = bannedPlayer }; PlayerBanEvent?.Invoke(ev); duration = ev.BanDuration; reason = ev.Reason; allow = ev.Allow; }
private void OnPlayerBanEvent(PlayerBanEventArgs ev) => MakeAndSendData(ev);