How to actually "close server" with PUN

I want to kick everyone out and prevent all players from joining, how do I do this?
Also, can I add certain IP or playerID to a whitelist and kick everyone else out?

Comments

  • Hi @dragon2222,

    a room gets automatically closed and removed from the server as soon as it's empty and the server-side timer for EmptyRoolTtl has expired.

    To remove certain players from the room, you can use PhotonNetwork.CloseConnection(...);. You would have to do this for each client individually.
Sign In or Register to comment.