/// <summary> /// Kicks the player from the game /// </summary> /// <param name="reason"></param> public void Kick(string reason) { Rust.Notice.Popup(netUser.networkPlayer, "", reason, 10f); NetCull.CloseConnection(netUser.networkPlayer, false); }
/// <summary> /// Kicks this player from the game /// </summary> /// <param name="reason"></param> public void Kick(string reason) { ServerManagement.Get().networkView.RPC("KP", netUser.networkPlayer, reason); NetCull.CloseConnection(netUser.networkPlayer, true); }