The server.properties file is the central configuration hub for Minecraft Java servers. By editing these properties, administrators can adjust gameplay mechanics like game mode, difficulty, and world generation, while also controlling performance-related settings such as maximum players or view distance. This flexibility lets server owners fine-tune both the player experience and server stability.
enable-jmx-monitoring – Toggles JMX tech for server monitoring.
rcon.port – Sets the port for RCON if enabled.
region-file-compression – Controls how region files are compressed (deflate, lz4, or none).
level-seed – Sets the world seed. Leave blank for random.
Example: level-seed=Steve12345
gamemode – Sets the server’s default gamemode: survival, creative, adventure, spectator.
enable-command-block – Turns command blocks on or off.
enable-query – Allows external server lists to request info.
generator-settings – Customize world generation.
enforce-secure-profile – Enables or disables Mojang’s chat reporting.
level-name – Names the world save folder.
motd – Sets the Message of the Day (shown in the server list).
query.port – Port used if query is enabled.
pvp – Enables or disables player vs. player combat.
generate-structures – Controls whether structures like villages generate.
difficulty – Game difficulty: peaceful, easy, normal, hard.
max-players – Maximum number of players allowed.
online-mode – Verifies players with Mojang’s account servers (recommended: true).
enable-status – Controls whether your server shows up on lists.
allow-flight – Allows flight in Survival (needed for some mods).
view-distance – Sets how many chunks players can see (affects performance).
simulation-distance – Sets how far entities and mechanics are active.
spawn-protection – Protects blocks around spawn (set to 0 to disable).
hardcore – Enables hardcore mode (locks to Hard difficulty).
white-list – Enables whitelist so only approved players can join.
op-permission-level – Sets operator permission levels (1–4).
force-gamemode – Forces all players to the default gamemode on join.
player-idle-timeout – Kicks idle players after X minutes (0 = disabled).
spawn-animals / spawn-monsters / spawn-npcs – Control mob spawning.
resource-pack – URL for a server resource pack.
require-resource-pack – Forces players to accept the pack.
resource-pack-sha1 – Optional SHA-1 checksum to verify pack integrity.
max-world-size – Sets the max world border.
Example: max-world-size=1000 → creates a 2000x2000 world.
The server.properties file might look intimidating at first, but it’s the most powerful tool for shaping your Minecraft server. Whether you want to create a hardcore survival challenge, a peaceful creative world, or a performance-optimized community server, mastering these settings helps you build the perfect experience for your players.