Minecraft Blogs / Tutorial

Make a server in ten minutes, without Hamachi!

  • 1,102 views, 1 today
  • 4
  • 2
  • 4
Boelens's Avatar Boelens
Level 33 : Artisan Nerd
8
Hello! This is a tutorial on how to make a server without having to use Hamachi.

The first thing you want to do, is to go to minecraft.net/download.jsp and find Minecraft_Server.exe, save it and run it. It will start generating a world, at first it will say that it cannot find a whitelist, ban list, etc.txt but that is completely normal. Let it generate the world.

(Optional useful information to know)
In the top left corner you will see a graph,it indicates your memory use. The more its using the more plugins/players you are having on it. You have limited acces to RAM depending on your computer. Most computers now a days have atleast 3GB Ram. You also see a player list, this indicates wich players are online.

Alright, the second thing you want to do.
Now, if you placed the server.exe on your desktop, you will see it has created some files. Now make a folder called whatever you want, for example "My Minecraft server." Alright, now you can connect to your own server by either typing your IP or typing localhost. You can find your IP by going to : whatsmyip.org. Now, its a bit more advanced then this. No one else can connect yet. First you will have to find out your router/modems IP adress, and log in on it. Now you will (most likely) have to go to a advanced tab, and select Port Forwarding. Now forward the port 25565 TCP. Save the configuration. People now will be able to acces your server using the IP from whatsmyip.org aslong as you are running the exe, it will be up.

Configuring the server.
Alright, lets look at our first file. server.properties, open it with your favourite editor. You will see the following :

#Minecraft server properties
#Sun Jul 10 17:32:32 CEST 2011
level-name=world
allow-nether=true
view-distance=10
spawn-monsters=true
online-mode=true
spawn-animals=true
max-players=20
server-ip=
pvp=true
level-seed=
server-port=25565
allow-flight=false
white-list=false

Lets go through this line per line.
The level name determines what world you are using, if it does not exist it will generate. If you want to use your own world put the folder of it in your root (Minecraft server folder) and then change the name EXACTLY to that world. The next thing is "allow nether", this determines if your players are allowed to go the nether using a portal. If you don't want them to, set it to false. Next we have view distance, just keep it on 10 or it will take you more RAM. Then, spawn monsters. This determines if you want to spawn zombies,creepers,spiders,etc. Set it to false if not. Online mode should be kept to true if you want player to be able to connect to your game. spawn animals determines if you want to spawn passive animals, Squids, etc. Max players is how many players are allowed in your server. The more players, the more RAM usage. Then Server IP is where you put your IP. Don't change it to anything else or it will break. PVP determines if you want to allow people to damage eachother. The level seed is the seed you want for your world. This is only when generating a new one.Then, we are at the server port. Keep it at 25565 or your server will break. Allow flight is if your players are allowed to fly using mods. Then after all whitelist is if your server wants a whitelist. A whitelist is that only certain people can join.

Next up, we're going to whitelist.txt
This is very basic, just insert the EXACT minecraft usernames you want to allow in your server. This only enables if you have whitelist to true.

Server.txt is basicly your log. Things being said save there. You can also see this in the server GUI.

Next up, banned players. Add anyone here you want to ban. If you don't want to have to restart your server, just type /ban in game. /pardon to unban.

Next up, banned ip's. This is to prevent multi accounting, insert someones IP there and he won't be able to connect ever again, not even with a new PC or account.

Next up, commands.

[INFO] help or ? shows this message
[INFO] kick <player> removes a player from the server
[INFO] ban <player> bans a player from the server
[INFO] pardon <player> pardons a banned player so that they can connect again
[INFO] ban-ip <ip> bans an IP address from the server
[INFO] pardon-ip <ip> pardons a banned IP address so that they can connect again
[INFO] op <player> turns a player into an op
[INFO] deop <player> removes op status from a player
[INFO] tp <player1> <player2> moves one player to the same location as another player
[INFO] give <player> <id> [num] gives a player a resource
[INFO] tell <player> <message> sends a private message to a player
[INFO] stop gracefully stops the server
[INFO] save-all forces a server-wide level save
[INFO] save-off disables terrain saving (useful for backup scripts)
[INFO] save-on re-enables terrain saving
[INFO] list lists all currently connected players
[INFO] say <message> broadcasts a message to all players
[INFO] time <add|set> <amount> adds to or sets the world time (0-24000)



Next up, installing plugins using Bukkit.

Download CraftBukkit's latest recommended build.
Put the .jar in the desired directory
Open notepad and type:

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%Javajre6binjava.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE

Lightbulb.png Note: If you are running java in 32bit mode on a 64bit machine, change %ProgramFiles% to %ProgramFiles(x86)%

If you are running Java 7 beta, type instead:

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%Javajre7binjava.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE

4. Save the document as RUN.bat (not as a .txt)
5. Double Click RUN.bat and you're away!
6. When you're done toying, issue "stop" command in console.

Now that you've installed Bukkit, you can install plugins. Go to bukkit.org and click on "Get plugins" find a plugin you like, but make sure its compatible with your build! Place it in your plugins folder (Is generated with bukkit.) Restart the server, configurate it if possible with the plugin, restart it and enjoy playing with your plugin!

This is how to set up and administrate a server. I hope this helped you and you can enjoy your brand new server!
Tags

Create an account or sign in to comment.

1
12/24/2011 12:02 pm
Level 19 : Journeyman Taco
IntenseBRer
IntenseBRer's Avatar
Thank fucking god its a christmas present thank you so much.
1
12/06/2011 7:38 pm
Level 17 : Journeyman Architect
Jessie_55
Jessie_55's Avatar
Need help on Portforwarding.. I dont see Advanced option.. :s

help please.
1
02/16/2012 11:53 am
Level 33 : Artisan Nerd
Boelens
Boelens's Avatar
Not sure if you still need a answer,
It's not always under advanced, but there should be a tab for Portforwarding somewhere. If you still cannot find it I can help you over Teamviewer.
1
07/11/2011 5:20 pm
Level 33 : Artisan Nerd
Boelens
Boelens's Avatar
Aparrently code tags do not work here. Sorry if it looks unorganized.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome