Skip to content

Commit 1bd572c

Browse files
Enchancement: Added msa-gamertags-only, disable-custom-skins, op-permission-level and more. (#415)
1 parent 694149c commit 1bd572c

File tree

2 files changed

+61
-14
lines changed

2 files changed

+61
-14
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ For Minecraft Java Edition you'll need to use this image instead:
5353
### Server Properties
5454

5555
The following environment variables will set the equivalent property in `server.properties`, where each [is described here](https://minecraft.wiki/w/Server.properties#Option_keys).
56+
Got it, here's the list with each item surrounded by backticks and prefixed with a hyphen:
5657

58+
```
5759
- `SERVER_NAME`
5860
- `SERVER_PORT`
5961
- `SERVER_PORT_V6`
@@ -78,6 +80,15 @@ The following environment variables will set the equivalent property in `server.
7880
- `PLAYER_MOVEMENT_DISTANCE_THRESHOLD`
7981
- `PLAYER_MOVEMENT_DURATION_THRESHOLD_IN_MS`
8082
- `CORRECT_PLAYER_MOVEMENT`
83+
- `MSA_GAMERTAGS_ONLY`
84+
- `ITEM_TRANSACTION_LOGGING_ENABLED`
85+
- `DISABLE_CUSTOM_SKINS`
86+
- `DISABLE_PERSONA`
87+
- `CHAT_RESTRICTION`
88+
- `OP_PERMISSION_LEVEL`
89+
- `COMPRESSION_ALGORITHM`
90+
- `BLOCK_NETWORK_IDS_ARE_HASHES`
91+
```
8192

8293
For example, to configure a flat, creative server instead of the default use:
8394

property-definitions.json

Lines changed: 50 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"gamemode": {
1212
"env": "GAMEMODE",
13-
"allowed": ["survival","creative","adventure"],
13+
"allowed": ["survival", "creative", "adventure"],
1414
"mappings": {
1515
"0": "survival",
1616
"1": "creative",
@@ -19,11 +19,11 @@
1919
},
2020
"force-gamemode": {
2121
"env": "FORCE_GAMEMODE",
22-
"allowed": ["true","false"]
22+
"allowed": ["true", "false"]
2323
},
2424
"difficulty": {
2525
"env": "DIFFICULTY",
26-
"allowed": ["easy","peaceful","normal","hard"],
26+
"allowed": ["easy", "peaceful", "normal", "hard"],
2727
"mappings": {
2828
"0": "peaceful",
2929
"1": "easy",
@@ -33,7 +33,7 @@
3333
},
3434
"level-type": {
3535
"env": "LEVEL_TYPE",
36-
"allowed": ["DEFAULT","FLAT","LEGACY"],
36+
"allowed": ["DEFAULT", "FLAT", "LEGACY"],
3737
"mappings": {
3838
"flat": "FLAT",
3939
"legacy": "LEGACY",
@@ -42,22 +42,22 @@
4242
},
4343
"allow-cheats": {
4444
"env": "ALLOW_CHEATS",
45-
"allowed": ["true","false"]
45+
"allowed": ["true", "false"]
4646
},
4747
"max-players": {
4848
"env": "MAX_PLAYERS"
4949
},
5050
"online-mode": {
5151
"env": "ONLINE_MODE",
52-
"allowed": ["true","false"]
52+
"allowed": ["true", "false"]
5353
},
5454
"white-list": {
5555
"env": "WHITE_LIST",
56-
"allowed": ["true","false"]
56+
"allowed": ["true", "false"]
5757
},
5858
"allow-list": {
5959
"env": "ALLOW_LIST",
60-
"allowed": ["true","false"]
60+
"allowed": ["true", "false"]
6161
},
6262
"view-distance": {
6363
"env": "VIEW_DISTANCE"
@@ -82,15 +82,15 @@
8282
},
8383
"default-player-permission-level": {
8484
"env": "DEFAULT_PLAYER_PERMISSION_LEVEL",
85-
"allowed": ["visitor","member","operator"]
85+
"allowed": ["visitor", "member", "operator"]
8686
},
8787
"texturepack-required": {
8888
"env": "TEXTUREPACK_REQUIRED",
89-
"allowed": ["true","false"]
89+
"allowed": ["true", "false"]
9090
},
9191
"server-authoritative-movement": {
9292
"env": "SERVER_AUTHORITATIVE_MOVEMENT",
93-
"allowed": ["server-auth","client-auth","server-auth-with-rewind"],
93+
"allowed": ["server-auth", "client-auth", "server-auth-with-rewind"],
9494
"mappings": {
9595
"true": "server-auth",
9696
"false": "client-auth"
@@ -111,14 +111,50 @@
111111
},
112112
"correct-player-movement": {
113113
"env": "CORRECT_PLAYER_MOVEMENT",
114-
"allowed": ["true","false"]
114+
"allowed": ["true", "false"]
115115
},
116116
"emit-server-telemetry": {
117117
"env": "EMIT_SERVER_TELEMETRY",
118-
"allowed": ["true","false"]
118+
"allowed": ["true", "false"]
119119
},
120120
"enable-lan-visibility": {
121121
"env": "ENABLE_LAN_VISIBILITY",
122-
"allowed": ["true","false"]
122+
"allowed": ["true", "false"]
123+
},
124+
"msa-gamertags-only": {
125+
"env": "MSA_GAMERTAGS_ONLY",
126+
"allowed": ["true", "false"]
127+
},
128+
"item-transaction-logging-enabled": {
129+
"env": "ITEM_TRANSACTION_LOGGING_ENABLED",
130+
"allowed": ["true", "false"]
131+
},
132+
"disable-custom-skins": {
133+
"env": "DISABLE_CUSTOM_SKINS",
134+
"allowed": ["true", "false"]
135+
},
136+
"disable-persona": {
137+
"env": "DISABLE_PERSONA",
138+
"allowed": ["true", "false"]
139+
},
140+
"chat-restriction": {
141+
"env": "CHAT_RESTRICTION",
142+
"allowed": ["None", "Dropped", "Disabled"],
143+
"mappings": {
144+
"none": "none",
145+
"dropped": "Dropped",
146+
"disabled": "Disabled"
147+
}
148+
},
149+
"op-permission-level": {
150+
"env": "OP_PERMISSION_LEVEL"
151+
},
152+
"compression-algorithm": {
153+
"env": "COMPRESSION_ALGORITHM",
154+
"allowed": ["zlib", "snappy"]
155+
},
156+
"block-network-ids-are-hashes": {
157+
"env": "BLOCK_NETWORK_IDS_ARE_HASHES",
158+
"allowed": ["true", "false"]
123159
}
124160
}

0 commit comments

Comments
 (0)