Kick players out of a room
Only the room owners can kick players.
List<string> players = new List<string>(); players.Add("5cdcfc0a1a2f5e001119de71-2"); NetworkClient.Lobby.KickPlayers(players, (successful, error) =>{ if (successful){ Debug.Log("Players kicked"); } else{ Debug.Log("Failed to kick players " + error); } });
Last updated 3 years ago
Methods
KickPlayers(List<string>, Action<bool, SWLobbyError>)
Called by room owners to begin an asynchronous operation to kick the specified players out of their rooms.
Class
SWLobbyError
The error that occurred when a lobby API operation failed.