Kick Players

Overview

Kick players out of a room

Only the room owners can kick players.

Example

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