
Minecraft: server.properties fully explained
All 69 keys that a Minecraft Java server writes to its server.properties, with default value and what they do. Marked are the ones you set in our control panel without file access.
Checked on 18 November 2026 · applies to Java Edition 26.3
How the file works
server.properties sits in the folder from which the server is started. Each line is a pair of key and value, separated by an equals sign; lines starting with # are comments. If the file is missing, the server creates it with the default values on start. If only a key is missing or a value is invalid, it uses the default value for it and rewrites the file.
Changes only take effect after a restart. So edit the file while the server is stopped, or restart it afterwards.
# Example: private server for friends motd=Our Server max-players=10 difficulty=normal white-list=true enforce-whitelist=true view-distance=8 simulation-distance=6
The default values below apply to Java Edition 26.3, as the server generates the file. Older versions differ, most noticeably: white-list has only been on by default since 26.3. So a server on an older version starts without a whitelist unless you switch it on yourself. Bedrock Dedicated Server has its own server.properties with different keys, which is not described here.
Game and rules 10
| Key | Default | What it does |
|---|---|---|
| gamemodein panel | survival | Game mode for new players: survival, creative, adventure or spectator. The server silently converts old numbers (0 to 3). |
| force-gamemode | false | true puts every player into the default game mode on joining. With false they keep the mode they left in. |
| difficultyin panel | easy | Difficulty: peaceful, easy, normal or hard. Determines, among other things, damage from monsters and how hunger and poison work. |
| hardcorein panel | false | Hardcore for newly generated worlds: anyone who dies can only spectate afterwards. |
| max-playersin panel | 20 | Maximum number of simultaneous players. Very large values break the player list in the client. |
| player-idle-timeout | 0 | After this many minutes without action a player is kicked. 0 switches this off. |
| pause-when-empty-seconds | 60 | If nobody has been online for this many seconds, the server pauses: the world stops running. A negative value switches the pause off, for example if farms should keep running without players. |
| spawn-protectionin panel | 16 | Radius of the protected area around spawn in which only operators may build: the area is 2x+1 blocks wide. 0 switches the protection off. Without a single operator it is also off. |
| allow-flightin panel | false | Allows flying in survival mode via mods. With false, anyone in the air for longer than about five seconds is kicked; mods with jetpacks or flying objects therefore need true. |
| max-world-size | 29999984 | Largest distance of the world border from the centre, in blocks. Higher than the default achieves nothing. |
World 9
These values take effect when a world is generated. A new seed or world type changes nothing in an existing world.
| Key | Default | What it does |
|---|---|---|
| level-name | world | Name and folder of the world. If the folder exists with a valid world, the server loads it; otherwise it generates a new one there. This is how you switch between several worlds. |
| level-seedin panel | empty | Seed for world generation. Empty means random. Only takes effect with a new world. |
| level-type | minecraft:normal | World type: minecraft:normal, minecraft:flat (superflat), minecraft:large_biomes, minecraft:amplified or minecraft:single_biome_surface. In the file the colon is escaped as minecraft\:normal. |
| generator-settings | {} | Fine-tuning of the generator, depending on level-type, for example the layers of a flat world. |
| generate-structures | true | Whether structures such as villages are generated. Dungeons are generated even with false. |
| initial-enabled-packs | vanilla | Data packs active when the world is generated, separated by commas. Experimental feature packs must be listed here explicitly. |
| initial-disabled-packs | empty | Data packs that are not automatically enabled when the world is generated. |
| region-file-compression | deflate | Compression of the region files: deflate, lz4 or none. Chunks already saved are not repacked. |
| sync-chunk-writes | true | Writes chunks to disk synchronously. Protects against data loss and corrupted chunks after a crash, but can slow the server down. |
Performance 8
The two distances are the strongest levers against lag. Both count in chunks as a radius around the player, not as a diameter.
| Key | Default | What it does |
|---|---|---|
| view-distancein panel | 10 | How many chunks the server sends to each player (3 to 32). More view distance means more RAM and bandwidth. |
| simulation-distancein panel | 10 | Up to what distance mobs and the world are actively computed (3 to 32). Beyond it, no plants grow and no animals move. If there is lag, lower this value first. |
| entity-broadcast-range-percentage | 100 | From what distance entities are sent to players, as a percentage of the normal distance (10 to 1000). Higher values show entities from further away and cost performance. |
| max-tick-time | 60000 | If a single tick takes longer than this many milliseconds, the watchdog considers the server crashed and stops it. -1 switches the watchdog off. |
| max-chained-neighbor-updates | 1000000 | Maximum number of consecutive block neighbour updates before further ones are skipped. Limits runaway redstone chains. Negative = no limit. |
| network-compression-threshold | 256 | Packets of this size in bytes and larger are compressed. -1 switches compression off, 0 compresses everything. |
| use-native-transport | true | Optimised network path on Linux. Only switch off for troubleshooting. |
| rate-limit | 0 | Maximum number of packets a player may send before being kicked. 0 = off. |
Access and permissions 14
| Key | Default | What it does |
|---|---|---|
| white-listin panel | true | Only players in whitelist.json may join. Operators are on it automatically. On by default only since 26.3, false before that. |
| enforce-whitelistin panel | false | Kicks players who are online but not on the whitelist as soon as the list is reloaded. Without it they stay in until they leave. |
| online-mode | true | Checks every player against Mojang/Microsoft accounts. false also lets in accounts without a purchased game and with someone else's name; only sensible for servers without internet access or behind a proxy such as Velocity. |
| enforce-secure-profile | true | Only players with a key signed by Mojang may join. With false, their chat messages are unsigned and cannot be reported. |
| prevent-proxy-connections | false | Kicks players whose network operator doesn't match the one Mojang's authentication server sees. Against VPN and proxy connections. |
| op-permission-level | 4 | Permission level a player gets with /op (0 to 4). 4 is everything, including /stop. |
| function-permission-level | 2 | Permission level with which functions from data packs run (1 to 4). |
| broadcast-console-to-ops | true | Shows the output of console commands to all operators in the game. |
| broadcast-rcon-to-ops | true | Shows the output of RCON commands to all operators in the game. |
| log-ips | true | Writes players' IP addresses to the console and log. If you don't want to store IPs, set false. |
| chat-spam-threshold-seconds | 10 | Threshold for automatic kicking for too many chat messages (since 26.2). 0 = never kick. |
| command-spam-threshold-seconds | 10 | The same threshold for too many commands (since 26.2). 0 = never kick. |
| accepts-transfers | false | Accepts players that another server sends over via a transfer packet. With false they are disconnected. |
| hide-online-players | false | Sends no player list with status queries. The server list then doesn't show who is online. |
Server list 4
| Key | Default | What it does |
|---|---|---|
| motdin panel | A Minecraft Server | Text below the server name in the server list. Colour and formatting codes and special characters work; above 59 characters the list may report an error. Preview with our MOTD tool. |
| enable-status | true | With false the server doesn't respond to status queries and appears offline in the list, but still accepts connections. |
| bug-report-link | empty | Address for the server's “Report bug” link. Empty = no link. |
| enable-code-of-conduct | false | Shows players a code of conduct from the codeofconduct subfolder, one file per language (e.g. de_de.txt). Since 1.21.9. |
Resource pack 5
| Key | Default | What it does |
|---|---|---|
| resource-pack | empty | Download address of a resource pack offered to players when they join. At most 250 MiB. |
| resource-pack-id | empty | Optional UUID by which clients recognise the pack. |
| resource-pack-sha1 | empty | SHA-1 checksum of the pack in lower case. Recommended so that clients detect a changed pack. |
| resource-pack-prompt | empty | Custom prompt text if the pack is mandatory. Empty = default text. |
| require-resource-pack | false | Anyone who declines the pack is disconnected. |
Network, RCON and query 8
On a rented server, the infrastructure sets port and address. Exposing these values in the panel would mean being able to configure your own server into unreachability.
| Key | Default | What it does |
|---|---|---|
| server-ip | empty | IP address on which the server listens. Empty = all addresses; leave it like that unless you have a reason. |
| server-port | 25565 | TCP port for players. Behind a home router it has to be forwarded. |
| enable-query | false | Enables the query interface through which tools fetch server info. |
| query.port | 25565 | UDP port for query. |
| enable-rcon | false | Remote access to the console over the network. RCON is unencrypted, including the password; only use it from localhost or a trusted network. |
| rcon.password | empty | Password for RCON. If it is empty, RCON doesn't start, for security reasons. |
| rcon.port | 25575 | TCP port for RCON. |
| enable-jmx-monitoring | false | Exposes tick times via JMX. Also needs matching Java launch parameters. |
Management protocol 9
Since 1.21.9 a server can be managed from outside via the Minecraft Server Management Protocol. It is off by default; for a normal server nothing needs changing here.
| Key | Default | What it does |
|---|---|---|
| management-server-enabled | false | Enables the management protocol. |
| management-server-host | localhost | Address on which the protocol listens. |
| management-server-port | 0 | Port of the protocol. |
| management-server-secret | (random) | Secret of 40 letters and digits that clients send in the Authorization header. Empty = the server generates one. |
| management-server-tls-enabled | true | Encrypts the protocol with TLS. If TLS is on and the keystore is missing, the server doesn't start. |
| management-server-tls-keystore | empty | Path to the keystore file for TLS. |
| management-server-tls-keystore-password | empty | Password of the keystore. Can also be given via the environment variable MINECRAFT_MANAGEMENT_TLS_KEYSTORE_PASSWORD; then it isn't in the file. |
| management-server-allowed-origins | empty | Allowed origin for connections to the protocol. The source lists the key in the default file but doesn't describe it further. |
| status-heartbeat-interval | 0 | Interval at which the protocol sends heartbeats to connected clients. 0 = off. |
Internal 2
Two keys that the file contains but you don't need to touch.
| Key | Default | What it does |
|---|---|---|
| text-filtering-config | empty | Configuration of the chat filter. According to the source intended internally for Realms and not officially documented. |
| text-filtering-version | 0 | Format of the filter configuration, 0 or 1. |
“In panel” means: on a server rented from us you set it directly in the control panel without opening the file. Everything else you change via the file manager.
Removed: pvp, allow-nether, spawn-monsters
With 1.21.9 four well-known keys disappeared from the file and became game rules: pvp, allow-nether, enable-command-block and spawn-monsters. With 1.21.2 spawn-animals and spawn-npcs were dropped. If one of them is in an old file, a new server ignores it. Instead, the game rule you set with /gamerule applies.
Since 1.21.11 all game rules are named in lower case with underscores, and some also differ from before. For the new version, for example:
/gamerule pvp false /gamerule keep_inventory true /gamerule spawn_monsters false /gamerule allow_entering_nether_using_portals false
keep_inventory (keep your inventory after death) was never a server.properties key, even though people often search for it. It has always been a game rule. On servers before 1.21.11 it is called keepInventory.
Announced for 26.4
For the next version the source lists three new keys: allowed-connection-ids (only accept connections with a specific identifier before the @ in the server address), enable-legacy-status (response to clients before 1.7) and status-contact-details (operators' contact details). They only appear in the file once the server runs 26.4.
On a rented server
You set the twelve marked values in our control panel in the “Spielregeln” (game rules) tab, with value range and explanation; they take effect after a restart. The panel only shows keys that your server's version knows. You change all the others directly in server.properties in the “Dateien” (files) tab. Port and address come from the infrastructure and stay fixed. You manage the whitelist in its own “Whitelist” tab, version and software in the “Software” tab.