Guide Minecraft

Minecraft Java Server Settings

Configure access, ports, world settings and performance; compare your generated Java server.properties and diagnose common setting errors.

Gaming PC and network router in a desk setup
Source: Coop Legends

Overview

Use Minecraft Java's server.properties to control access, network listeners, capacity, world generation and resource packs. Start with the file generated by your own server JAR, not a complete configuration copied from a different version.

This reference covers the properties listed in the PaperMC documentation retrieved on November 25, 2026, supplemented by Mojang's release notes. Reference values are drawn from that older Paper documentation, supplemented by explicitly dated Mojang changes; they are not a newly generated Vanilla or Paper 26.3 configuration. The Paper page's displayed last-update date is May 12, 2025, so treat its table values as reference values, not current universal defaults. Mojang explicitly changed white-list to true by default in Java 26.3; retain the actual settings of an existing server until you have reviewed them.

Choose a configuration task below, then test the result with a normal player account. Paper-specific behavior is marked. This is a settings reference with examples, not a claim that every current key or loader-specific default has been independently tested.

How to compare and edit your actual file

Start with our Java server setup if you have not installed a server yet. For extensions, see Paper, Fabric and NeoForge. These Java settings do not apply wholesale to Bedrock.

  1. Record the running JAR, exact version and loader. Stop with stop and wait for the process to exit.
  2. Keep an external backup of the world and configuration. If comparing versions, start the exact destination JAR in a separate empty directory using its documented procedure and accept the EULA only if you agree. Stop again once the file has been generated.
  3. Compare the original configuration with the newly generated reference; preserve existing values deliberately rather than copying all new defaults. For example, on Linux or macOS: diff -u old-server.properties server.properties (use copies with those filenames). On Windows use fc.exe old-server.properties server.properties in a terminal. Keep comparisons private: the files may contain secrets.
  4. Edit the needed properties in the active file, not a template in a different folder. Restart and read the console. Test access, correct world selection and the intended feature; retain the original file until the checks pass.

A newly generated reference is useful for identifying added and removed keys, not for proving all defaults work for your modpack. See backup and restore before changing generation settings or updating a world.

Access, players and server browser

PropertyReference value (see scope)Meaning
max-players20Maximum concurrent player connections
online-modetrueAuthenticates accounts with Minecraft. Disabling it removes account verification and should not be a general connection fix
white-listtrue by default in Vanilla 26.3; false in older Paper referenceOnly listed players can join
enforce-whitelistfalseRemoves connected players who do not meet an enforced allowlist
player-idle-timeout0Minutes until idle players are kicked; 0 disables the timer
motdA Minecraft ServerMessage in the server browser
enable-statustrueEnables browser status queries; disabling it can make a reachable server appear offline
hide-online-playersfalseHides the player list in status responses
enforce-secure-profiletrueRequires a Mojang-signed public profile key pair
prevent-proxy-connectionsfalseAttempts to reject mismatches between network origin and Mojang authentication
accept-transfersfalseAccepts players transferred from another server using the transfer protocol
allow-flightfalseControls the server's flight-related kick check. Set true only when intended gameplay requires it and you have reviewed the implications. It does not grant ordinary survival players creative flight.

For a new private server, keep authentication enabled. In the server console use whitelist add ActualPlayerName (replace the example name) and whitelist list. Test that an intended friend can join and an unlisted, non-operator account cannot. Do not disable authentication to resolve an allowlist error.

Network, ports and data transmission

PropertyReference value (see scope)Meaning
server-ipemptyAddress to bind; empty means appropriate local interfaces. Do not unnecessarily enter your public IP
server-port25565Normal Java player connection port (TCP)
network-compression-threshold256Minimum packet size in bytes before compression; negative disables it
rate-limit0Packet-rate limit; 0 disables it
use-native-transporttrueNative networking on supported Linux installations
entity-broadcast-range-percentage100Percentage factor for entity update range; Paper lists 10–1000

For ordinary Java play, start with the configured TCP game port; enabling Query separately is not necessary for normal joins. Check a local join first and a remote join second. For self-hosting see router and firewall configuration. Do not expose RCON, JMX or management services merely to make player connections work.

World, game mode and generation

PropertyReference value (see scope)Meaning
difficultyeasypeaceful, easy, normal or hard
gamemodesurvivalDefault player game mode
force-gamemodefalseReset rejoining players to the configured default
hardcorefalseEnables hardcore behavior; deceased players become spectators
level-nameworldWorld/folder name
level-seedemptySeed for newly generated worlds; empty means random
level-typeminecraft:normalWorld generator type; check valid values for your version
generator-settings{}JSON for custom world generation
generate-structurestrueEnable generated structures such as villages
max-world-size29999984World-radius limit described by the Paper reference for initial generation; do not treat it as a substitute for an in-game world border
spawn-protection16Spawn protection radius: side length is twice the value plus one; 0 disables it. Paper says at least one operator must exist for it to work

Changing level-name can select a different save or create a fresh world. If the server loads an unexpected empty world, stop it before playing or saving further changes and compare the folder name and the working directory. Changing the seed does not regenerate existing terrain into a new map.

View distance, simulation and ticks

PropertyReference value (see scope)Meaning
view-distance10Server-side client view distance in chunks; Paper lists 3–32
simulation-distance10Chunk radius for simulated entities and game logic; Paper lists 3–32
pause-when-empty-seconds-1 on PaperDelay before pausing an empty server; Paper disables it by default to avoid unexpected plugin behavior. Vanilla introduced this setting with 60 seconds in 1.21.2; verify the current generated value
max-tick-time60000Watchdog threshold in ms; -1 disables it
max-chained-neighbor-updates1000000Limit for cascading block updates; negative disables it
sync-chunk-writestrueSynchronous chunk writes; Paper says this does not take effect there by default without an extra system property
region-file-compressiondeflatedeflate, lz4 or none; Paper also supports Paper-specific gzip

For a small co-op server with lag, use the same group and world to compare one setting at a time. For example, keep view-distance at 10, compare simulation-distance 10 with 6, and record tick time and whether farms behave as expected. These values are illustrative, not a benchmark or a guaranteed optimization. Restore the previous setting if gameplay becomes unacceptable. Do not disable the watchdog simply to hide a stuck tick.

Operators, commands and debugging

PropertyReference value (see scope)Meaning
op-permission-level4Default operator permission level
function-permission-level2Function permission level; Paper documents 1–4
broadcast-console-to-opstrueBroadcast console command output to online operators
broadcast-rcon-to-opstrueBroadcast RCON output to online operators
debugfalseServer debug mode
log-ipstrueLog player IPs; plugins may also log addresses independently
bug-report-linkemptyURL for the client bug-report button
enable-code-of-conductfalseEnable Code of Conduct files in codeofconduct, supported since 1.21.9

Query, RCON and JMX

PropertyReference value (see scope)Meaning
enable-queryfalseEnable the optional GameSpy4-style query listener (UDP)
query.port25565Query service port
enable-rconfalseEnable remote console; only with a strong password and access restrictions
rcon.port25575RCON port
rcon.passwordemptyRCON password; never leave empty or weak when enabled
enable-jmx-monitoringfalseExpose Minecraft server tick-time MBean; also requires Java/JMX startup arguments

Keep remote console disabled unless you have a specific administration need and a protected connection. RCON is not a substitute for the player port; a strong password alone does not secure it on the public internet. Restrict management to trusted networks.

Resource packs and data packs

PropertyReference value (see scope)Meaning
resource-packemptyURL for the server resource pack
resource-pack-idemptyUUID for the resource pack
resource-pack-sha1emptySHA-1 hash for integrity checking; recommended by Paper
resource-pack-promptemptyText shown when the client is offered the resource pack
require-resource-packfalseKick players who refuse the pack when true
initial-enabled-packsvanillaComma-separated data packs initially enabled when generating the world
initial-disabled-packsemptyData packs not enabled by default at generation

Spam and text-filter controls

PropertyReference value (see scope)Meaning
chat-spam-threshold-seconds10Chat counter threshold in accumulated seconds since 26.2; 0 disables that automatic kick
command-spam-threshold-seconds10Separate command counter threshold; 0 disables that automatic kick
text-filtering-configemptyPath to text-filter config; empty disables it
text-filtering-version0Text filter format; Paper documents 0 and 1

Mojang's 26.2 notes describe a decaying counter, not a fixed messages-per-second quota. Each message adds one second to its relevant counter, and that counter decays by one twentieth of a second per tick. This is the 26.2 release-note definition, which takes precedence over the simpler rate description in the Paper reference. A kick occurs when the threshold is reached. For a legitimate automation problem, diagnose the chat and command streams separately rather than disabling both protections.

Minecraft Server Management Protocol

Mojang introduced a JSON-RPC management interface over WebSocket in Java 1.21.9. It defaults to disabled and should normally be bound to a private management interface. Use authentication and properly configured TLS even when integrating a remote dashboard; do not expose it publicly by default.

PropertyReference value (see scope)Meaning
management-server-enabledfalseEnable the management interface
management-server-hostlocalhostNetwork interface to bind the service
management-server-port0Management listener port; 0 picks an available port
management-server-secretemptyAuthentication secret: Mojang documents 40 alphanumeric characters and generates one when omitted
management-server-tls-enabledtrueEnable TLS
management-server-tls-keystoreemptyTLS keystore path; when management is enabled with TLS, provide the required keystore
management-server-tls-keystore-passwordemptyTLS keystore password; can alternatively be provided via environment or JVM argument
status-heartbeat-interval0Management heartbeat interval; 0 disables notifications

The 26.2 protocol can report status during startup before the world is ready. A heartbeat is not proof that a client can join. The 26.3 release also introduced upgrade notifications. Keep the interface disabled if unused; if integrating a dashboard, protect the secret and use the documented TLS and access restrictions. Never share the actual management secret or keystore password in screenshots or logs.

Properties removed from newer Minecraft releases

Many old tutorials list properties that are no longer valid in 26.2:

Removed propertyReplacement introduced in 1.21.9 or earlier removal
allow-netherGame Rule allowEnteringNetherUsingPortals
spawn-monstersGame Rule spawnMonsters
enable-command-blockGame Rule commandBlocksEnabled
pvpGame Rule pvp
spawn-animalsAlready removed from server.properties since 1.21.2
spawn-npcsAlready removed from server.properties since 1.21.2

Mojang's 1.21.9 notes establish these original rule names; use the current server's gamerule completion to find the identifier for your installed version. Do not copy the removed entries back into a modern file. The 1.21.2 notes document the earlier two removals.

Secure starting configuration for a friends-only world

For a small private group, basic access controls are usually more important than experimental performance tweaks:

online-mode=true white-list=true enforce-whitelist=true max-players=8 server-port=25565 view-distance=10 simulation-distance=10 enable-rcon=false management-server-enabled=false

Eight players is an example, not a capacity guarantee. This is a partial patch to a generated configuration. After starting, add each permitted player through the console and test the allowlist. Keep management interfaces off if unused. If upgrading an existing server, compare the old and new allowlist values first.

Find the setting behind a symptom

Observed problemCheck first
Friend rejected by a newly installed 26.3 serverAllowlist membership and account authentication.
Server looks offline but a direct connection worksenable-status and actual game port.
Survival player kicked while using intended modded movementServer log, compatible mod and allow-flight; do not grant flight or disable protections blindly.
Unexpected blank worldlevel-name and the server working directory; stop before saving further.
Old PvP option has no effectCurrent game rule, not a removed property.
Remote dashboard responds but players cannot joinWorld readiness, actual game listener, version and authentication separately.

Documentation review, November 25, 2026: PaperMC property reference (cached document, displayed last-update date May 12, 2025), Mojang 26.2, Mojang 26.3 (indexed release excerpt), and the linked 1.21.9/1.21.2 release notes. The 26.2 and 26.3 developer release text was available through the official search index; no full direct retrieval is claimed for these two releases. The older 1.21.9 and 1.21.2 release articles were directly retrieved. The tables cover the retrieved Paper list; a freshly generated Vanilla and Paper 26.3 file is still needed to establish exhaustive current defaults. No server startup, performance or configuration test was performed for this revision.

Teaser illustration: Coop Legends, AI-generated with OpenAI; a generic hosting setup, not gameplay.