[PUN] Boot/Kick Players with Photon?

I’ve searched everywhere and could not find an answer to this…

How can I disconnect clients from my server if I am not the master client? I’m setting up a game where I want to allow “admins” who can access a menu for extra things such as booting players. However, whenever I try to kick a player it says I must be master client. Is there a way around this?

Adam

We designed some tasks to be done by the Master Client but you have the source of PUN and can simply remove that “rule” or even better: Replace it with your “Must be Admin” rule.
In this case, edit the (!player.isMasterClient) in PhotonNetwork.cs, CloseConnection.

Oh that’s a great idea! I didn’t think about editing the PUN code at all. Thanks :slight_smile: