Skip to content

Disabling Identity for clients

Draylar edited this page Oct 10, 2021 · 2 revisions

Looking to prevent your players from being able to change their Identity (such as in a roleplay server)? These options might help.


enableClientSwapMenu: set to false to disallow clients from opening the Identity menu through the ` key. Note that this option is non-authoritative, which means a modified client can still request changes from the server. This option is useful for when you want to disable the menu but have some other functionality that allows the client to request swaps from the server. Note that operators bypass this option and will still be able to open the screen if the option is false.

enableSwaps: an authoritative option that allows you to prevent clients from requesting swaps through the API. If enableClientSwapMenu is true, players will still be able to open the menu, but clicking on an entity will not do anything (so it is recommended that you turn both off if this option is false). Operators are able to bypass this functionality. This does not prevent the server from changing the Identity of clients, so you will still be able to force their Identity using commands or the mod API.

By setting both of these options to false, you will have full control over the Identity of players, and they will not be able to request swaps.

Clone this wiki locally