Minecraft:Code of conduct: Difference between revisions
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Exclusive|Java}} | {{Exclusive|Java}} | ||
{{Stub}} | |||
[[File:MC26.3-CodeOfConductScreen.png|alt=Screenshot of Minecraft: Java Edition. There is a dialog with the caption "Server Code of Conduct". The conduct here is an example, in this case saying "Hello, Minecraft Wiki!". The user is given a choice to either acknowledge and join the server, or disconnect. There is also a check box for the user to not be notified about the code of conduct on subsequent server connections.|thumb|The Code of Conduct screen shown when connecting to a server with it enabled.]] | |||
The Code of Conduct is a [[Minecraft:server]] feature allowing administrators to show the rules of their server to players when they join for the first time. | The Code of Conduct is a [[Minecraft:server]] feature allowing administrators to show the rules of their server to players when they join for the first time. | ||
| Line 9: | Line 10: | ||
* The player is joining but accepted an old version of the Code of conduct | * The player is joining but accepted an old version of the Code of conduct | ||
The Code of conduct is shown in the same language as the client (see the next section), but if this language is not present it shows the default, <code>en_us</code> | The Code of conduct is shown in the same language as the client (see the next section), but if this language is not present it shows the default, <code>en_us</code>. <!-- This was tested on Vanilla Java Edition 26.3 Server By PrayoadMii --> | ||
[[File:MC26.3-CodeOfConductScreenInOtherThailandLanguage.png|thumb|The English version of Code of Conduct screen shown when the server only have English version of Code of Conduct.|alt=An image shows a Minecraft: Java Edition dialog in minecraft that set to thailand language and server sent a english version of Code of Conduct Screen]] | |||
Two buttons are shown with the code of conduct: <code>Acknowledge</code> and <code>Disconnect</code> | Two buttons are shown with the code of conduct: <code>Acknowledge</code> and <code>Disconnect</code> | ||
| Line 16: | Line 17: | ||
The Code of conduct can be enabled via the <code>enable-code-of-conduct</code> field in the [[Minecraft:server.properties]] file. | The Code of conduct can be enabled via the <code>enable-code-of-conduct</code> field in the [[Minecraft:server.properties]] file. | ||
The content of the Code of conduct is stored in text files located in the <code>/codeofconduct</code> folder. Each file of this folder corresponds to a language, and should contain the code of conduct translated to the corresponding language. Files name matches <code><lang>.txt</code>, where <lang> is the id | The content of the Code of conduct is stored in text files located in the <code>/codeofconduct</code> folder. Each file of this folder corresponds to a language, and should contain the code of conduct translated to the corresponding language. Files name matches <code><lang>.txt</code>, where <lang> is the [[Minecraft:Language#Languages|language id]] (e.g. <code>en_us</code>). | ||
== Navigation == | |||
{{Navbox Java Edition technical|general}} | |||
Latest revision as of 11:06, 15 October 2026
Template:Exclusive Template:Stub
The Code of Conduct is a Minecraft:server feature allowing administrators to show the rules of their server to players when they join for the first time.
Behavior
If enabled and configured on a server, the Code of conduct will be shown to a player if one of the two following condition is met:
- The player is joining for the first time
- The player is joining but accepted an old version of the Code of conduct
The Code of conduct is shown in the same language as the client (see the next section), but if this language is not present it shows the default, en_us.
Two buttons are shown with the code of conduct: Acknowledge and Disconnect
Configuration
The Code of conduct can be enabled via the enable-code-of-conduct field in the Minecraft:server.properties file.
The content of the Code of conduct is stored in text files located in the /codeofconduct folder. Each file of this folder corresponds to a language, and should contain the code of conduct translated to the corresponding language. Files name matches <lang>.txt, where <lang> is the language id (e.g. en_us).