How to add a code of conduct to a Minecraft server
Set enable-code-of-conduct=true in server.properties, put your text files in the codeofconduct folder and restart. Players must accept it to join.
enable-code-of-conduct
Controls whether players are shown a server code of conduct they must accept when joining.
enable-code-of-conduct=<value> Examples
enable-code-of-conduct=true Show your rules on join.
Values
| Value | What it does |
|---|---|
| true | On |
| falseDefault | Off |
Arguments
valueRequired- The value to write after the equals sign.
What it does
When true, the server shows players a code of conduct read from text files in the codeofconduct folder, one file per language. Players who do not accept it cannot join.
Good to know
- Changes take effect after a server restart.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.