PDA

View Full Version : Creating your very own minecraft server



legionkiller99
March 29th, 2011, 04:12
A small guide for people wanting to host their own minecraft server.

Table of content:
1. Getting the files
2. Setting up the server settings
3. Running the server
4. Other improvements
5. Creating custom maps
6. Plugins

1. Getting the files
You will only need the minecraft_server.jar which is downloadable from the minecraft website.
I'll provide the link to it here:
Only the registered members can see the link.

Put it in a folder somewhere you like (I.E. a folder called minecraft server on your desktop) and run it once, it'll download all files required and create a world.


2. Setting up the server settings
Now that you have all the files, open the server.properties file with notepad or any similar program.

level-name=world The name of the world file.
hellworld=false Set this to true if you want the nether to be enabled. Note: The world can only be 100% normal or 100% nether without the use of plugins.
spawn-monsters=true Set this to false if you want to turn the spawning of zombies, creepers and skeletons off
online-mode=true Set this to false if you want the account verification turned off, allowing cracked clients to connect. (Careful, people with cracked clients can log in with the name of an operator and abuse it.)
spawn-animals=true Set this to false if you want animals not to spawn, this means no cows, sheep, chickens or squids.
max-players=20 The player limit
server-ip= This isn't required if i'm right.
pvp=true Player versus player damage, false to turn it off.
server-port=25565 The port the server will run on, this'll also be the port you'll have to forward.
white-list=false The use of a whitelist. If set to true, add the names in the white-list.txt file.

Explanation of the other files:
banned-ips.txt - Contains the banned ip adresses.
banned-players.txt - Contains the banned playernames
ops.txt - Contains the names of the ops (operators, aka admins)
server.txt - The server log
server.properties - Explained above
white-list.txt - Contains the names of the people that are allowed on the server when the whitelist is set to true.



3. Running the server.

Of course you can run the server by simply double clicking the minecraft_server.jar, although it'll give warnings that it doesn't have enough memory.
Let's fix that.
Create a bat file and put the following in it:

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui


It'll use 1024 mb ram to run the server now, edit if you like.

Have fun with your own server! :)



4. Other improvements for the batch file when using a multi core machine: - I claim no credits for these improvements.


-XX:+UseConcMarkSweepGC -XX:+UseParNewGC


-XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts


Example:

java -server -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar minecraft_server.jar nogui





5. Creating custom maps

To create your own custom maps, you'll need a map editor. I'll provide some links here:
Omen : Only the registered members can see the link. - Wiki page: Only the registered members can see the link.

Worldedit : Only the registered members can see the link. - Note, this'll require the bukkit plugin.

The actual mapping is explained on the forums and wiki.

6. Plugins

One of the best plugins created is the bukkit plugin, a link to the forums: Only the registered members can see the link.
Meh, instead of writing a line for all the plugins here.. i'll just link you to some topics :)
Only the registered members can see the link.
Only the registered members can see the link.

legionkiller99
March 29th, 2011, 04:24
Reserved for possible expansion of the guide.

tedhead2
March 29th, 2011, 15:20
Tell us how to make custom maps and add custom commands and shit