server.properties is the file which stores all the settings for a multiplayer (Minecraft or Minecraft Classic) server.
If you are going to edit server.properties it is important that you use the same structure as the original uses, although the order of the lines is arbitrary. The text before the equal sign is the key, which you shouldn't change. The text after the equal sign is the property's value, which you can edit. Lines that begin with
# are comments - altering or removing these lines has no effect on the game.
After changes are made to the server.properties file, the server must be restarted for them to take effect.
If the server.properties file does not list all properties (such as if a new version of the server adds new properties, or if the file does not exist), then on startup the server will rewrite the server.properties file with the new properties listed and set them to their default values.
This file is automatically generated upon first start of the server (if it doesn't exist).
|Windows||Same directory as Minecraft_Server.exe|
|Path of Working Directory (pwd)||
If you start it from your home directory (/home/yourname) the server files will be created in /home/yourname. Follow these guidelines for ensuring that the server files are generated where you would expect them.
As of 1.5.1, these are the default settings for a newly installed Minecraft server:
#Minecraft server properties #(file modification datestamp) generator-settings= allow-nether=true level-name=world enable-query=false allow-flight=false server-port=25565 level-type=DEFAULT enable-rcon=false level-seed= server-ip= max-build-height=256 spawn-npcs=true white-list=false spawn-animals=true hardcore=false texture-pack= online-mode=true pvp=true difficulty=1 gamemode=0 max-players=20 spawn-monsters=true generate-structures=true view-distance=10 motd=A Minecraft Server
Minecraft server properties
|allow-flight||boolean||false||Allows users to use flight on your server while in Survival mode, if they have a mod that provides flight installed.
With allow-flight enabled griefers will possibly be more common, because it will make their work easier. In Creative mode this has no effect.
|allow-nether||boolean||true||Allows players to travel to the Nether.|
|difficulty||integer (0-3)||1||Defines the difficulty (such as damage dealt by mobs and the way hunger and poison affects players) of the server.
|enable-query||boolean||false||Enables GameSpy4 protocol server listener. Used to get information about server.|
|enable-rcon||boolean||false||Enables remote access to the server console.|
|enable-command-block||boolean||false||Enables Command Blocks
this option is not generated when you start the server it only gets generated when you try to use the command block
|gamemode||integer (0-2)||0||Defines the mode of gameplay.
|generate-structures||boolean||true||Defines whether structures (such as NPC Villages) will be generated.
|generator-settings||string||blank||The settings used to customize Superflat world generation. See Superflat for possible settings and examples.|
|hardcore||boolean||false||If set to true, players will be permanently banned if they die.|
|level-name||string||world||The "level-name" value will be used as the world name and its folder name. You may also copy your saved game folder here, and change the name to the same as that folder's to load it instead.
|level-seed||string||blank||Add a seed for your world, as in Singleplayer.
|level-type||string||DEFAULT||Determines the type of map that is generated.
|max-build-height||integer||256||The maximum height in which building is allowed. Terrain may still naturally generate above a low height limit.|
|max-players||integer (0-2147483647)||20||The maximum number of players that can play on the server at the same time. Note that if more players are on the server it will use more resources. Note also, op player connections are not supposed to count against the max players, but ops currently cannot join a full server. Extremely large values for this field result in the client-side user list being broken.|
|motd||string||A Minecraft Server||This is the message that is displayed in the server list of the client, below the name.
|online-mode||boolean||true||Server checks connecting players against minecraft's account database. Only set this to false if your server is not connected to the Internet. Hackers with fake accounts can connect if this is set to false! If minecraft.net is down or inaccessible, no players will be able to connect if this is set to true. Setting this variable to off purposely is called "cracking" a server, and servers that are presently with online mode off are called "cracked" servers.
|pvp||boolean||true||Enable PvP on the server. Players shooting themselves with arrows will only receive damage if PvP is enabled.|
|query.port||integer (1-65534)||25565||Sets the port for the query server (see enable-query).|
|rcon.password||string||blank||Sets the password to rcon.|
|rcon.port||integer (1-65534)||25575||Sets the port to rcon.|
|server-ip||string||blank||Set this if you want the server to bind to a particular IP. It is strongly recommended that you leave server-ip blank!
|server-port||integer (1-65534)||25565||Changes the port the server is hosting(listening) on. This port must be forwarded if the server is hosted in a network using NAT (If you have a home router/firewall).|
|snooper-enabled||boolean||true||Since 1.3 pre-release, sets whether the server sends snoop data regularly to http://snoop.minecraft.net.
|spawn-animals||boolean||true||Determines if Animals will be able to spawn.
Tip: if you have major lag, turn this off/set to false.
|spawn-monsters||boolean||true||Determines if monsters will be spawned.
This does nothing if difficulty = 0 (peaceful) Unless your difficulty is not set to 0, when a monster can still spawn from a Monster Spawner. Tip: if you have major lag, turn this off/set to false.
|spawn-npcs||boolean||true||Determines if non-player characters (NPCs) will be spawned.
|spawn-protection||integer||16||Determines the radius of the spawn protection. Note: Setting this to 0 will not disable spawn protection. 0 will protect the single block at the spawn point. 1 will protect a 3x3 area centered on the spawn point. 2 will protect 5x5, 3 will protect 7x7, etc. This options is not generated on first server start and appears when first player joins.|
|texture-pack||string||blank||Server prompts client to download texture pack upon join. This link must be a direct link to the actual texture pack .zip file. As of 1.5, high-resolution texture packs are supported, but must be less than or equal to 10,000,000 bytes (approx 9.54MB) in size.|
|view-distance||integer (3-15)||10||Sets the amount of world data the server sends the client, measured in chunks in each direction of the player. It determines the server-side viewing distance. The "Far" viewing distance is 9 chunks, sending 441 total chunks (the amount of chunks that the server will load can be seen in the debug screen).
10 is the default/recommended. Tip: if you have major lag, reduce this value.
|white-list||boolean||false||Enables a white list on the server.
With a white list enabled, users not on the white list will be unable to connect. Intended for private servers, such as those for real-life friends or strangers carefully selected via an application process, for example.
Minecraft Classic server properties
|verify-names||boolean||true||If enabled the server will make sure that the client is logged in with the same IP on Minecraft.net. This has caused problems for people trying to play on the same computer they are hosting the server on as the server will see the local IP (127.0.0.1) while Minecraft.net will see the external IP. It is recommended that this is enabled unless you want to play on your server from the same computer you are hosting it on
|admin-slot||boolean||false||Allow ops to join even if the server is full.|
|public||boolean||Whether the server should be displayed in the server list, or not.
|server-name||string||The name of the server. This is displayed in the server list and when someone is joining the server
|max-players||integer (0-256)||The max numbers of players that can play on the server at the same time. Note that if more players are on the server it will use more resources. Note also, admin connections are not counted against the max players.|
|max-connections||integer (1-3)||The max number of connections the server will accept from the same IP.
|motd||string||MOTD is short for Message of the day, though you do not need to change it every day. The MOTD is displayed when people join the server.|
|grow-trees||boolean||Whether or not the server will allow planted saplings to grow into trees.