Skip to content

Commit

Permalink
Enchancement: Added msa-gamertags-only, disable-custom-skins, op-perm…
Browse files Browse the repository at this point in the history
…ission-level and more. (#415)
  • Loading branch information
ReallyFatYoshi authored May 20, 2024
1 parent 694149c commit 1bd572c
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 14 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ For Minecraft Java Edition you'll need to use this image instead:
### Server Properties

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).
Got it, here's the list with each item surrounded by backticks and prefixed with a hyphen:

```
- `SERVER_NAME`
- `SERVER_PORT`
- `SERVER_PORT_V6`
Expand All @@ -78,6 +80,15 @@ The following environment variables will set the equivalent property in `server.
- `PLAYER_MOVEMENT_DISTANCE_THRESHOLD`
- `PLAYER_MOVEMENT_DURATION_THRESHOLD_IN_MS`
- `CORRECT_PLAYER_MOVEMENT`
- `MSA_GAMERTAGS_ONLY`
- `ITEM_TRANSACTION_LOGGING_ENABLED`
- `DISABLE_CUSTOM_SKINS`
- `DISABLE_PERSONA`
- `CHAT_RESTRICTION`
- `OP_PERMISSION_LEVEL`
- `COMPRESSION_ALGORITHM`
- `BLOCK_NETWORK_IDS_ARE_HASHES`
```

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

Expand Down
64 changes: 50 additions & 14 deletions property-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"gamemode": {
"env": "GAMEMODE",
"allowed": ["survival","creative","adventure"],
"allowed": ["survival", "creative", "adventure"],
"mappings": {
"0": "survival",
"1": "creative",
Expand All @@ -19,11 +19,11 @@
},
"force-gamemode": {
"env": "FORCE_GAMEMODE",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"difficulty": {
"env": "DIFFICULTY",
"allowed": ["easy","peaceful","normal","hard"],
"allowed": ["easy", "peaceful", "normal", "hard"],
"mappings": {
"0": "peaceful",
"1": "easy",
Expand All @@ -33,7 +33,7 @@
},
"level-type": {
"env": "LEVEL_TYPE",
"allowed": ["DEFAULT","FLAT","LEGACY"],
"allowed": ["DEFAULT", "FLAT", "LEGACY"],
"mappings": {
"flat": "FLAT",
"legacy": "LEGACY",
Expand All @@ -42,22 +42,22 @@
},
"allow-cheats": {
"env": "ALLOW_CHEATS",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"max-players": {
"env": "MAX_PLAYERS"
},
"online-mode": {
"env": "ONLINE_MODE",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"white-list": {
"env": "WHITE_LIST",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"allow-list": {
"env": "ALLOW_LIST",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"view-distance": {
"env": "VIEW_DISTANCE"
Expand All @@ -82,15 +82,15 @@
},
"default-player-permission-level": {
"env": "DEFAULT_PLAYER_PERMISSION_LEVEL",
"allowed": ["visitor","member","operator"]
"allowed": ["visitor", "member", "operator"]
},
"texturepack-required": {
"env": "TEXTUREPACK_REQUIRED",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"server-authoritative-movement": {
"env": "SERVER_AUTHORITATIVE_MOVEMENT",
"allowed": ["server-auth","client-auth","server-auth-with-rewind"],
"allowed": ["server-auth", "client-auth", "server-auth-with-rewind"],
"mappings": {
"true": "server-auth",
"false": "client-auth"
Expand All @@ -111,14 +111,50 @@
},
"correct-player-movement": {
"env": "CORRECT_PLAYER_MOVEMENT",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"emit-server-telemetry": {
"env": "EMIT_SERVER_TELEMETRY",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"enable-lan-visibility": {
"env": "ENABLE_LAN_VISIBILITY",
"allowed": ["true","false"]
"allowed": ["true", "false"]
},
"msa-gamertags-only": {
"env": "MSA_GAMERTAGS_ONLY",
"allowed": ["true", "false"]
},
"item-transaction-logging-enabled": {
"env": "ITEM_TRANSACTION_LOGGING_ENABLED",
"allowed": ["true", "false"]
},
"disable-custom-skins": {
"env": "DISABLE_CUSTOM_SKINS",
"allowed": ["true", "false"]
},
"disable-persona": {
"env": "DISABLE_PERSONA",
"allowed": ["true", "false"]
},
"chat-restriction": {
"env": "CHAT_RESTRICTION",
"allowed": ["None", "Dropped", "Disabled"],
"mappings": {
"none": "none",
"dropped": "Dropped",
"disabled": "Disabled"
}
},
"op-permission-level": {
"env": "OP_PERMISSION_LEVEL"
},
"compression-algorithm": {
"env": "COMPRESSION_ALGORITHM",
"allowed": ["zlib", "snappy"]
},
"block-network-ids-are-hashes": {
"env": "BLOCK_NETWORK_IDS_ARE_HASHES",
"allowed": ["true", "false"]
}
}

0 comments on commit 1bd572c

Please sign in to comment.