Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 private void OnPlayerBanEvent(PlayerBanEventArgs ev)
 => MakeAndSendData(ev);