Gameplay
difficulty
How hard the game is: peaceful, easy, normal or hard. Before 1.14 as a number from 0 (peaceful) to 3 (hard).
gamemode
The game mode for new players: survival, creative, adventure or spectator. Before 1.14 as a number from 0 to 3.
force-gamemode
true
false
Put players back in the default game mode every time they join.
hardcore
true
false
Players are put in spectator mode when they die, and the difficulty is locked on hard.
pvp
true
false
Players can hurt each other. Since 1.21.9 this is the game rule pvp.
allow-flight
true
false
Do not kick players who fly in survival. Turn it on when you use fly plugins or mods, or players get kicked for flying.
allow-nether
true
false
Players can enter the Nether. Since 1.21.9 this is a game rule.
enable-command-block
true
false
Command blocks work. Since 1.21.9 this is the game rule enableCommandBlocks.
spawn-monsters
true
false
Hostile mobs spawn. Since 1.21.9 this is the game rule spawnMonsters.
spawn-animals
true
false
Animals spawn. Removed in 1.21.2.
spawn-npcs
true
false
Villagers spawn. Removed in 1.21.2.
spawn-protection
Radius around spawn where only operators can build. 0 turns it off. Has no effect when there are no operators.
max-players
How many players can be online at once.
player-idle-timeout
Kick players after this many minutes without moving. 0 never kicks.
op-permission-level
Default permission level for /op: 1 bypass spawn protection, 2 cheat commands, 3 player management, 4 all commands.
function-permission-level
Permission level that data pack functions run with.
announce-player-achievements
true
false
Show achievements in chat. Removed in 1.12 (now a game rule).
World
level-name
Folder name of the world. Change it to load or make another world.
level-seed
Seed for a new world. Empty means random. Has no effect on an existing world.
level-type
World type for a new world, like a normal, flat, large biomes or amplified world.
generator-settings
Settings for the world type, like the layers of a flat world (JSON since 1.13).
generate-structures
true
false
Villages, temples and other structures generate in new chunks.
max-world-size
Radius of the world border in blocks.
max-build-height
Highest block players can build at. Removed in 1.17.
initial-enabled-packs
Data packs turned on when the world is created.
initial-disabled-packs
Data packs that stay off when the world is created.
region-file-compression
How chunks are compressed on disk: deflate (default), lz4 (faster, bigger) or none.
sync-chunk-writes
true
false
Save chunks right away. Safer after a crash; turning it off can speed up saving on slow disks.
Network
server-ip
Bind the server to this IP only. Leave empty on almost every host.
server-port
TCP port players connect to. The default is 25565.
motd
The text in the server list. Use § codes for colours; this editor writes them as \u00A7, as the file expects.
network-compression-threshold
Packets bigger than this many bytes are compressed. -1 turns compression off (only behind a proxy on the same machine).
prevent-proxy-connections
true
false
Kick players whose IP differs from the one Mojang saw at login. Can block players on VPNs.
enable-status
true
false
Answer server list pings. Off makes the server look offline in the list, but players can still join.
hide-online-players
true
false
Do not show the names of online players in the server list.
accepts-transfers
true
false
Accept players sent here by another server with the /transfer command.
rate-limit
Kick players who send more packets per second than this. 0 turns it off.
use-native-transport
true
false
Use faster Linux networking (epoll). Leave it on.
bug-report-link
Link shown to players in the pause menu to report bugs.
status-heartbeat-interval
Seconds between status messages to management clients. 0 turns them off.
Security and players
online-mode
true
false
Check every player with Mojang. Off lets anyone join with any name. Only turn it off behind BungeeCord or Velocity in online mode.
white-list
true
false
Only players on whitelist.json can join.
enforce-whitelist
true
false
Kick online players who are not on the whitelist when it is reloaded or turned on.
enforce-secure-profile
true
false
Players need a Mojang-signed chat key. Players without one cannot join.
previews-chat
true
false
Chat preview. Only in 1.19 to 1.19.2.
log-ips
true
false
Write player IP addresses to the server log.
broadcast-console-to-ops
true
false
Show the output of console commands to online operators.
broadcast-rcon-to-ops
true
false
Show the output of RCON commands to online operators.
enable-code-of-conduct
true
false
Show players a code of conduct when they join (since 1.21.9).
chat-spam-threshold-seconds
Kick players who spam chat. 0 turns the kick off.
command-spam-threshold-seconds
Kick players who spam commands. 0 turns the kick off.
text-filtering-config
Chat filter settings, only used by Realms.
text-filtering-version
Version of the chat filter config, only used by Realms.
snooper-enabled
true
false
Send anonymous usage data to Mojang. Removed in 1.18.
Performance
view-distance
How many chunks around each player are sent. Higher looks better but costs a lot of RAM and CPU.
simulation-distance
How many chunks around each player are active (mobs, farms, crops). Lower saves CPU.
max-tick-time
Stop the server when one tick takes longer than this many milliseconds. -1 turns the watchdog off.
entity-broadcast-range-percentage
How far away players see entities, in percent of the default.
max-chained-neighbor-updates
Limit for chains of block updates (redstone). Negative turns the limit off.
pause-when-empty-seconds
Pause the world when nobody is online for this many seconds. Negative never pauses.
enable-jmx-monitoring
true
false
Expose tick time metrics over JMX. Needs extra Java flags.
RCON, query and management
enable-rcon
true
false
Allow remote console access over RCON.
rcon.port
TCP port for RCON. Never the same as the server port.
rcon.password
Password for RCON. RCON does not start without one. RCON is not encrypted.
enable-query
true
false
Answer GameSpy4 query requests (UDP) with the player list and plugins.
query.port
UDP port for query. Usually the same as the server port.
management-server-enabled
true
false
Turn on the management server (JSON-RPC over WebSocket).
management-server-host
Address the management server listens on. Keep localhost unless you need remote access.
management-server-port
Port of the management server. 0 picks a free port.
management-server-secret
Secret clients need. Made for you when empty.
management-server-tls-enabled
true
false
Encrypt the management server with TLS.
management-server-tls-keystore
Path to the keystore with the TLS certificate.
management-server-tls-keystore-password
Password of the TLS keystore.
Resource pack
resource-pack
Direct download link of a resource pack (zip) players get when they join.
resource-pack-sha1
SHA-1 of the resource pack zip. Players re-download only when it changes.
resource-pack-id
UUID of the resource pack (since 1.20.3).
resource-pack-prompt
Message shown when players are asked to accept the pack.
require-resource-pack
true
false
Kick players who decline the resource pack.
Other keys
Keys from plugins, mods or other versions. We keep them in the file as they are.