This will be a complete beginners guide to setting up a Minecraft server on your computer. I’m using OSX so it will be a little different for Windows/Linux users.
What you first need to do is to get the latest version of Bukkit. It’s just the server software. It’s very user friendly, so modding your server should be really easy.Ā Get Bukkit from here.Ā Just look under Recommended Builds on the right.
So now that you have Bukkit, your going to want to create a new folder and place Bukkit inside before you open it.
Once its in the folder you create you can double click Bukkit to extract the contents of the server. Once everything has been extracted renamed (press enter while selecting the file) craftbukkit-1.1R4.jar (thats the version at the time of writing this) to craftbukkit.jar
Don’t open craftbukkit.jar just yet. Theres still a few things left to do. OpenĀ server.properties with TextEdit.
You should see something like the following:
#Minecraft server properties
#Sat Feb 18 02:56:47 GMT 2012
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=
spawn-npcs=true
white-list=false
spawn-animals=true
online-mode=true
pvp=true
difficulty=1
server-name=WM-MCS
gamemode=0
max-players=5
spawn-monsters=true
generate-structures=true
view-distance=10
motd=westm.co.uk
Above are my settings for a basic SMP. The options are very straight forward, just do a quick Google if you get stuck. Once this is sorted you’ll need to create a server star command. Which is probably the hardest part of making a server, but it’s still really simple.
Open a new TextEdit window and go to Format>Make Plain Text. Then copy and paste the following:
!/bin/bash
cd "$( dirname "$0" )"
java -server -Xmx2560M -jar ./craftbukkit.jar
The –Xmx2560M is the amount of RAM allocated to the server. Change depending your system. I’m using a late 2009 2.5 Mac mini with 8gb of ram, so using 2gb (2560) isn’t really too much of a big deal.
512=512MB; 1024=1GB; 1536=1.5GB; 2560=2.5GB; 3072=3GB; 5120=5GB
Save into your server directory asĀ start_server.command
Next you need to open up Terminal (cmd+space to open up Spotlight to find it). Next type inĀ chmod +x and don’t press enter just yet. Drag theĀ start_server.command file into the Terminal window, then press enter.
When ever you want to start your server just double click onĀ start_server.command, and if you wish to stop your server type stop in the terminal window. If you don’t stop your server you can damage the server files, which could lead to theĀ corruptionĀ of them.
Open Activity Monitor and make sure there isn’t any processes called Java running, if there is, just quit/force quit them.
Now thats the server side complete, you need to work on getting people to be able to see and join your server over the internet. You’re going to need to set up Port Forwarding or Port Triggering for people to be able to join your server. Instructions vary from router to router so check out portforward.comĀ for instructions for your router.
So if you’re like me and have a Netgear, your in luck because here’s what you need to do:
OpenĀ http://192.168.1.1/
Username: admin
Password: password
Click Port Forwarding / Port Triggering under Advance
Then click the radio button for Port Triggering and click Add Service
Fill in the details like so:Ā
Click Apply and you’re done!
Right, now you can openĀ start_server.command to start your server. Also open Minecraft too. Once all the text stops moving in the Terminal window that just popped you can join your server. You can either do with by going to Multiplayer and Direct Connect and entering your IP address or you can enter localhost
You can use a cool handy piece of software called Port Map to make sure/check your ports are open.
Of you like to install a plugin, you can do easily. Just download one or more from the Bukkit site and unzip (if needed) and place them in the plugin directory of your server.
I recommend Dynmap and WelcomeMe.