Exemplo n.º 1
0
        private void SendReject(ServerPlayer player, MsgReject.RejectionCodes code, string reason)
        {
            player.Accepted        = false;
            player.RejectionReason = code.ToString() + " :" + reason;

            Logger.Log1("Reject Player " + player.PlayerID + " " + player.RejectionReason);
            player.SendMessage(new MsgReject(code, reason));

            PlayerRejected?.Invoke(this, player);

            player.Disconnect();
            RemovePlayer(player);
        }
Exemplo n.º 2
0
 private void SecurityArea_PlayerRejected(object sender, ServerPlayer e)
 {
     PlayerRejected?.Invoke(this, e);
 }