Minecraft Server Setup

Minecraft Server Setup


Minecraft Server OS Supported

  • Windows
  • Linux*

Minecraft servers require RAM over processing power.  A very small minecraft server (4 players) can run on just 512 MB of ram where a large server of 200 players will take 16GB of ram.  If you are planning to have a major hive (1000-2000 players) you will need to look into servers with 256GB ram or possible clustering servers together in order to make that happen.

Windows Setup

1. Download the .zip file at https://minecraft.net/download and create folder,extract it to your created folder

2. Go to that location and open the minecraft-server folder

  • Double click the exe (run as administrator for windows)
  • It will instantly close but it will create a folder called logs
  • You should see something like this if you open the latest.log file in notepad



  • So in the same folder you ran the server file you should see the file EULA.txt.  Change the False to TRUE



  • run the Minecraft server .exe file again and it should create a bunch of files in the folder.


3. Now you’ll see a bunch of files. There should a file called server.properties Open it. If you can’t open the file, select ‘Notepad’ from the window that pops up. If this file is blank, open the other server file. 

4. Find the line that says port=xxx, by default this is 25565. Go to http://www.portforward.com and find your router model for a step-by-step guide to forward the port. If you do not forward the port, others will not be able to join your server.  If you are using a dedicated server with a public IP address just make sure your firewall has the port allowed for incoming and outgoing.

To name your server, change the name after server-name=. This is what will appear on the public server list.
To change the Message of the Day, change the text after motd=. This is what will appear when players connect to your server.
To change the amount of players allowed, change the number after max-players=. This number is how many players (including you) can be in the server at one time.

6. Save and close the server file. When you double-click the minecraft_server.exe file and the GUI comes up, type in the chat box “/op your_username” to make yourself and admin on the server.

7. If you want to add players from the Ban List at the Minecraft Wiki, copy and paste the list into the banned file. If you want to ban any IP addresses, copy and paste them into the banned-ip file. Banned IPs must have a / before each entry. For both banlists, each name or IP must be on its own line. Save and close the banned and banned-ip files.

8. Aaaaannnnd… you’re done! Click start server to launch the server. A White command window will show up and give you details on your server

9. To close your server, simply exit out of the white command window

Linux Setup

I installed my minecraft linux server on Ubuntu 14.04 server edition.  Everything went very sooth and it is actually much easier then other games I have had to work with.

  • Install Java:
    1. sudo apt-get install default-jdk
    2. Confirm install: java -version


  • Install Screen
    1. sudo apt-get install screen


  • Make Minecraft Directory and change to it
    1. mkdir minecraft
    2. cd minecraft
    3. Confirm location: pwd


  • Download minecraft ** You may need to change the file name ending depending on version you are looking to install.  **
    1. wget --user=mozilla -O minecraftserver.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.7.10/minecraft_server.1.7.10.jar


  • Start screen and run the minecraftserver.jar file you downloaded
    1. screen -S  “minecraft server”
    2. java -Xmx1024M -Xms1024M -jar minecraftserver.jar nogui


  • This will give the following error:  You need to edit the eula.txt from false to true as I did in below.  You can use tools such as VI or nano to do this.  The file should have been created if it was the first time running the .jar


  • Start the server again and your minecraft linux server will be up and running.  You can edit the data in the server.properties to configure it how you want.  See the table below for more info on that.
    1. java -Xmx1024M -Xms1024M -jar minecraftserver.jar nogui





Server.properties Discriptions and Settings


Key Type Default Value Description
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.

false – Flight is not allowed (players in air for at least 5 seconds will be kicked).
true – Flight is allowed, and used if the player has a fly mod installed.
allow-nether boolean true Allows players to travel to the Nether.

false – Nether portals will not work.
true – The server will allow portals to send players to the Nether.
announce-player-achievements boolean true Allows server to announce when a player gets an achievement.
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.

0 – Peaceful
1 – Easy
2 – Normal
3 – Hard
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
force-gamemode boolean false Force players to join in the default game mode.

false – Players will join in the gamemode they left in.
true – Players will always join in the default gamemode.
gamemode integer (0-3) 0 Defines the mode of gameplay.

0 – Survival
1 – Creative
2 – Adventure
3 – Spectator
generate-structures boolean true Defines whether structures (such as villages) will be generated.

false – Structures will not be generated in new chunks.
true – Structures will be generated in new chunks.

Note: Dungeons and Nether Fortresses will still generate if this is set to false.

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.

Characters such as ‘ (apostrophe) may need to be escaped by adding a backslash before them.
level-seed string blank Add a seed for your world, as in Singleplayer.

Some examples are: minecraft, 404, 1a2b3c.
level-type string DEFAULT Determines the type of map that is generated.

DEFAULT – Standard world with hills, valleys, water, etc.
FLAT – A flat world with no features, meant for building.
LARGEBIOMES – Same as default but all biomes are larger.
AMPLIFIED – Same as default but world-generation height limit is increased.
CUSTOMIZED – Since snapshot 14w21b, servers also support the custom terrain. First you have to generate a customized world in singleplayer and copy it to the server.
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.
max-tick-time[upcoming] integer (?–?) 60000 The maximum number of milliseconds a single tick may take before the server watchdog stops the server with the message, A single server tick took 60.00 seconds (should be max 0.05); Considering it to be crashed, server will forcibly shutdown.
max-world-size[upcoming] integer (1-29999984) 29999984 This sets the maximum possible size in blocks, expressed as a radius, that the world border can obtain. Setting the world border bigger causes the commands to complete successfully but the actual border will not move past this block limit. Setting the max-world-size higher than the default doesn’t appear to do anything.Examples:

  • Setting max-world-size to 1000 will allow you to have a 2000×2000 world border.
  • Setting max-world-size to 4000 will give you an 8000 x 8000 world border.
motd string A Minecraft Server This is the message that is displayed in the server list of the client, below the name.

  • The MOTD does support color and formatting codes.
  • If the MOTD is over 59 characters, the server list will likely report a communication error.
network-compression-threshold[upcoming] integer 256 By default it allows packets that are n-1 bytes big to go normally, but a packet that n bytes or more will be compressed down. So, lower number means more compression but compressing small amounts of bytes might actually end up with a larger result than what went in.

-1 – disable compression entirely
0 – compress everything

Note: The Ethernet spec requires that packets less than 64 bytes become padded to 64 bytes. Thus, setting a value lower than 64 may not be beneficial. It is also not recommended to exceed the MTU, typically 1500 bytes.

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, allowing players with unlicensed copies of Minecraft to join.

true – Enabled. The server will assume it has an Internet connection and check every connecting player.
false – Disabled. The server will not attempt to check connecting players.
op-permission-level integer (1-4) 4 Sets permission level for ops.

1 – Ops can bypass spawn protection.
2 – Ops can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, and /tp, and can edit command blocks.
3 – Ops can use /ban, /deop, /kick, and /op.
4 – Ops can use /stop.
player-idle-timeout integer 0 If non-zero, players are kicked from the server if they are idle for more than that many minutes.

Note: Idle time is reset when the server receives one of the following packets:

  • 102 (0x66) WindowClick
  • 108 (0x6c) ButtonClick
  • 130 (0x82) UpdateSign
  • 14 (0xe) BlockDig
  • 15 (0xf) Place
  • 16 (0x10) BlockItemSwitch
  • 18 (0x12) ArmAnimation
  • 19 (0x13) EntityAction
  • 205 (0xcd) ClientCommand
  • 3 (0x3) Chat
  • 7 (0x7) UseEntity
pvp boolean true Enable PvP on the server. Players shooting themselves with arrows will only receive damage if PvP is enabled.

Note: Indirect damage sources spawned by players (such as lava, fire, TNT and to some extent water, sand and gravel) will still deal damage to other players.
true – Players will be able to kill each other.
false – Players cannot kill other players (also known as Player versus Environment (PvE)).
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.
resource-pack string blank Server prompts client to download resource pack upon join. This link must be a direct link to the actual resource pack .zip file.
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!

Set to blank, or the IP you want your server to run (listen) on.
server-name string Unknown Server The name of your server.
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 Sets whether the server sends snoop data regularly to http://snoop.minecraft.net.

false – disable snooping.
true – enable snooping.
spawn-animals boolean true Determines if animals will be able to spawn.

true – Animals spawn as normal.
false – Animals will immediately vanish.

Tip: if you have major lag, turn this off/set to false.

spawn-monsters boolean true Determines if monsters will be spawned.

true – Enabled. Monsters will appear at night and in the dark.
false – Disabled. No monsters.

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 villagers will be spawned.

true – Enabled. Villagers will spawn.
false – Disabled. No villagers.
spawn-protection integer 16 Determines the radius of the spawn protection. Setting this to 0 will not disable spawn protection. 0 will protect the single block at the spawn point. 1 will protect a 3×3 area centered on the spawn point. 2 will protect 5×5, 3 will protect 7×7, etc. This option is not generated on the first server start and appears when the first player joins. If there are no ops set on the server, the spawn protection will be disabled automatically.
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 (radius, not diameter). It determines the server-side viewing distance. The “Far” viewing distance is 16 chunks, sending 1089 total chunks (the amount of chunks that the server will load can be seen in the debug screen). “Normal” view distance is 8, for 289 chunks.10 is the default/recommended. If you have major lag, reduce this value.
white-list boolean false Enables a whitelist on the server.With a whitelist enabled, users not on the whitelist 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.

Note – Ops are automatically white listed, and there is no need to add them to the whitelist.
false – No white list is used.
true – The file white-list.txt is used to generate the white list.

source: http://minecraft.gamepedia.com/Server.properties

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.