Minecraft server.properties Configuration Guide

Complete reference for every setting in server.properties — gamemode, difficulty, PvP, view distance, network, security, and resource packs.

The server.properties file controls all core settings on your Minecraft Java server. It's a plain key=value text file in the server root.

Server File Structure

server.properties
ops.json
whitelist.json
banned-players.json
banned-ips.json

How to Edit server.properties

Stop your server

In the XGamingServer Panel, go to Console and stop your server.

Always stop the server before editing — Minecraft overwrites server.properties on shutdown, so changes made to a running server are lost.

Open server.properties

Click Files in the sidebar and open server.properties in the server root.

Edit and save

Change the values you need, click Save Content, then start your server from Console.

Tip: Many of these settings are also available as Startup variables in the panel sidebar — that's faster for the most common settings (server name, port, max players, gamemode, difficulty).

Server Identity

PropertyDefaultDescription
motdA Minecraft ServerMessage of the day shown in the server browser. Supports color codes. See Change MOTD
server-port25565Game port (TCP)
server-ip(empty)IP to bind to. Leave empty to bind all interfaces
max-players20Maximum concurrent players. See Player Limit
white-listfalseEnable whitelist mode
enforce-whitelistfalseKick non-whitelisted players when whitelist is enabled

Gameplay

PropertyDefaultDescription
gamemodesurvivalsurvival, creative, adventure, or spectator
difficultyeasypeaceful, easy, normal, or hard
hardcorefalseEnable Hardcore mode (permadeath, locks difficulty to hard)
pvptrueAllow player vs player combat
force-gamemodefalseForce players to server gamemode on every join
allow-flightfalseAllow flight mods/plugins. Disable to kick flying players
spawn-monsterstrueSpawn hostile mobs
spawn-animalstrueSpawn passive mobs
spawn-npcstrueSpawn villagers
allow-nethertrueEnable the Nether dimension
enable-command-blockfalseAllow placing and using command blocks

World

PropertyDefaultDescription
level-nameworldWorld folder name. Change to load a different world
level-seed(empty)World generation seed (only applies on first generation)
level-typeminecraft:normalnormal, flat, large_biomes, amplified, single_biome_surface
generate-structurestrueGenerate villages, temples, monuments, etc.
max-world-size29999984World border radius in blocks (max value)
spawn-protection16Radius around spawn that only OPs can modify (0 = disabled)

Performance

PropertyDefaultRecommendationDescription
view-distance106–10Chunk render distance (4–32). Biggest performance lever
simulation-distance104–8Chunk simulation/ticking distance (4–32)
max-tick-time6000060000 or -1Milliseconds before watchdog kills the server (-1 = disabled)
network-compression-threshold256256Packet compression threshold in bytes
entity-broadcast-range-percentage10050–100Entity visibility range. Lower = less network load
sync-chunk-writestruetrueForce chunk writes to flush before continuing

Performance tip: Lower view-distance and simulation-distance before adding RAM. View distance has more impact than any other setting. See Performance Guide.

Player

PropertyDefaultDescription
player-idle-timeout0Minutes before AFK players are kicked (0 = disabled)
op-permission-level4Default OP permission level (1–4). See OP Permissions
function-permission-level2Permission level for command functions in datapacks

Network & Security

PropertyDefaultDescription
online-modetrueVerify player accounts with Mojang. Set to false for cracked clients (NOT recommended)
prevent-proxy-connectionsfalseBlock VPN and proxy connections
enable-rconfalseEnable remote console
rcon.port25575RCON port (TCP)
rcon.password(empty)RCON password — required if enable-rcon is true
enable-queryfalseEnable GameSpy4 query protocol (for server lists)
query.port25565Query port (UDP)
enable-statustrueShow server in the multiplayer browser ping list
hide-online-playersfalseHide player count from server pings

Warning: Setting online-mode=false allows cracked clients but also lets anyone connect with any username, including impersonating your admins. Only disable on private servers behind a whitelist.

Resource Packs

PropertyDefaultDescription
resource-pack(empty)Public URL to a server resource pack .zip
resource-pack-sha1(empty)SHA1 hash of the resource pack for verification
require-resource-packfalseKick players who decline the pack
resource-pack-prompt(empty)Custom message shown to players when prompted

See Resource Packs for the full setup guide.

Misc

PropertyDefaultDescription
level-nameworldActive world folder name
snooper-enabledtrueSend anonymous usage stats to Mojang
enable-jmx-monitoringfalseEnable JMX monitoring for performance tools
op-permission-level4OP permission level

Common Color Codes

Several settings (motd, kick messages, etc.) support § color codes:

CodeColor
§aGreen
§cRed
§eYellow
§bAqua
§lBold
§rReset

See Color Codes for the full list.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page