Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Code of conduct: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{Exclusive|Java}}
{{Exclusive|Java}}
{{Stub}}
{{Stub}}
{{No navbox}}
[[File:MC25w34a-CodeOfConductScreen.png|thumb|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.|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 18: Line 18:
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 of the language (e.g. <code>en_us</code>).
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:02, 9 June 2026

Template:Exclusive Template:Stub

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.
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.

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_usTemplate:Needs testing.

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).

Navigation

Template:Navbox Java Edition technical