You are viewing our Forum Archives. To view or take place in current topics click here.
How to create a Minecraft server [VANILLA+BUKKIT]
Posted:

How to create a Minecraft server [VANILLA+BUKKIT]Posted:

Daw
  • TTG Addict
Status: Offline
Joined: May 17, 201311Year Member
Posts: 2,808
Reputation Power: 175
Status: Offline
Joined: May 17, 201311Year Member
Posts: 2,808
Reputation Power: 175
How to create a Minecraft server



Table of Contents


  • Bukkit or Vanilla?
  • Installing Vanilla Software
  • Installing Bukkit Software
  • Increasing Available Server RAM
  • Making Yourself OP
  • Port forwarding
  • Bukkit Plugins
  • Creating a Whitelist
  • Advertising Your Server
  • Moderating Your Server
  • Picking Staff



Bukkit or Vanilla?


Bukkit
Bukkit is a server modification, which allows the administrator of the server to utilize plugins created by the Bukkit community, to better enhance their server. You can use these plugins to make it easier to run the server, and to make your server a better experience for your players.

Vanilla
Vanilla is what most people call the 'untouched' Minecraft server, a vanilla sever is one that's software has been downloaded directly from Minecraft.net. You may not utilize Bukkit plugins, if you decide to create a vanilla server, although it is still possible to use game mods.

Whether to go with the Bukkit server software, or vanilla, is totally up to you. If you want to make a quick private server, for you and a few friends to play on, vanilla will most likely be just fine. But if you're planning on creating a public server that can get griefed, spammed, etc. A bukkit server might be what you're looking for.




Installing Vanilla Software

Windows 7 / Vista / XP
Before you do anything, make sure you have Java 7 installed, if you don't, you can download the latest version [ Register or Signin to view external links. ]

Method A (.exe)
1.) Create a folder on your desktop, or wherever you would prefer. Call the folder "Minecraft_Server", or something you can remember.

2.) Go to the download page for the software, you can find it here.

3.) Click the link labelled "Minecraft_Server.exe (802 KB)", under "Multiplayer Server", to download the file.

4.) Place the file in the folder you created earlier.

5.) Open the file, it will create the worlds, and load up all the stuff it needs.

Method B (.jar)
1.) Create a folder on your desktop, or wherever you would prefer. Call the folder "Minecraft_Server", or something you can remember.

2.) Go to the download page for the software, you can find it here.

3.) Click the link labelled "minecraft_server.jar (621 KB)", under "Multiplayer Server", to download the file.

4.) Place the file in the folder you created earlier.

5.) Open Notepad, paste in the following:
java -Xms1G -Xmx1G -jar minecraft_server.jar


6.) Save the file as startserver.bat, in the same folder that you created earlier.
7.) Double click "startserver.bat" to run the server, it should load up.



Mac OS X

1.) Create a folder on your desktop, or wherever you would prefer. Call the folder "Minecraft_Server", or something you can remember.

2.) Go to the download page for the software, you can find it [ Register or Signin to view external links. ]

3.) Click the link labelled "minecraft_server.jar", under "Multiplayer Server", to download the file.

4.) Place the file in the folder you created earlier.

5.) Open TextEdit, click Format > Make Plain Text, then paste in this text:
#!/bin/bash
        cd "$(dirname "$0")"
        exec java -Xmx1G -Xms1G -jar minecraft_server.jar


6.) Save this file as startserver.command, in the same folder you saved the file you downloaded earlier in.

7.) Open Terminal, you can find this by typing "Terminal" in the Spotlight search.

8.) Paste in "chmod a+x " (make sure you include the space at the end). Then, drag in the startserver.command file into the window, it should show up with the name of the file after what you've just typed. Hit enter.

9.) Open the startserver.command file, it will load up the worlds and other stuff it needs.



Installing Bukkit Software


Windows 7 / Vista / XP
Before you do anything, make sure you have Java 7 installed, if you don't, you can download the latest version [ Register or Signin to view external links. ]

1.) Create a folder on your desktop, or wherever you would prefer. Call the folder "Minecraft_Server", or something you can remember.

2.) Download the latest Bukkit Recommended Build, which can be found [ Register or Signin to view external links. ]

3.) Rename the file to "craftbukkit.jar".

4.) Open Notepad, paste in the following:
@ECHO OFF
   SET BINDIR=%~dp0
   CD /D "%BINDIR%"
   java -Xmx1G -Xms1G -jar craftbukkit.jar
   PAUSE


5.) Save the file as "startserver.bat", in the folder you created in the first step.

6.) Open "startserver.bat", to run the server, the worlds will load up and the server will load necessary components.

Mac OS X

1.) Create a folder on your desktop, or wherever you would prefer. Call the folder "Minecraft_Server", or something you can remember.

2.) Download the latest Bukkit Recommended Build, which can be found [ Register or Signin to view external links. ]

3.) Rename the file to "craftbukkit.jar".

4.) Open TextEdit, paste in the following:
#!/bin/bash
   cd "$( dirname "$0" )"
   java -Xmx1G -Xms1G -jar craftbukkit.jar


5.) Save the file as "startserver.command", in the folder you created in the first step.

6.) Open Terminal, you can find this by typing "Terminal" in the Spotlight search.

7.) Paste in "chmod a+x " (make sure you include the space at the end). Then, drag in the startserver.command file into the window, it should show up with the name of the file after what you've just typed. Hit enter.

8.) Open the startserver.command file, it will load up the worlds and other stuff it needs.



Increasing Available Server RAM

Increasing the RAM available to your server, will increase the speed of your server, but if you are using the computer for other things, this will slow them down, and prioritize the server. Changing the available amount of RAM for your server is fairly simple:

1.) Open your "startserver.bat", or "startserver.command" file in Notepad or TextEdit.

2.) Go to the part that says "-Xmx1G -Xms1G".

3.) Change both of the 1G's to the amount of RAM you want to allocate to your server. 1G is 1 Gigabyte of RAM, so, if you wanted to give your server 2 Gigabytes, you would replace '1G' with '2G', you can also insert this as Megabytes, using 'M', instead of 'G'.

4.) Save the file, and open your server up again with it, and bam, you should now be using the amount of RAM you asked for.

Note: Do not allocate your server too much memory, make sure the number is lower than the total RAM your computer has.



Making Yourself OP


OP (or operator) is a status on a Minecraft server that gives you special permissions to kick, ban, and give items. It is only recommended you make people you trust OP. To make somebody an OP, simply type "op ingamename" into the server console, replacing "ingamename" with their actual in-game name. For example, if you wanted to OP somebody who's game name was "steve283", you would type in: "op steve283".

If you're using Bukkit, an alternative to making people OP is using a permissions plugin. The benifit in this, is that you can allow people to have certain permissions, and disallow them from doing other things, instead of allowing OPs to do everything. If you're interested in using a permissions plugin, I would recommend using PermissionsEx, but I'm just saying that from personal experience, and everybody has different preferences. You can find [ Register or Signin to view external links. ] here.



Port Forwarding


Port forwarding is what allows people from outside your network to connect to your server. Port forwarding opens a specific port or set of ports to people from outside your network. To do this, you will have to log into your router, and configure the port forwarding from there. There are a lot of routers, so it may be hard to figure out how to do this for your specific router.

1.) Open your web browser, paste in "192.168.1.2" in the URL field. If that doesn't connect, try "192.168.1.1", "192.168.2.1", "192.168.0.1", "192.169.1.0", or "192.168.10.1".

2.) If you still can't connect, on Windows open Command Prompt, and type "ipconfig", then look for the "default gateway" part, to find your router's IP. The IPs stated in step 1 were only a few defaults, and a lot of routers are different.

3.) It should now ask you for a username and password, routers usually use "admin" as the username, and "admin", "1234", or "password", as the password. If these don't allow you to log in, Google your router model's default login details.

4.) Look for a port forwarding section, on my Billion router, it is in Advanced > Configuration > Virtual Server > Port Forwarding.

5.) If it says "application" or "label", "name", or something similar, just type in "minecraft".

6.) Where it says "protocol", select the "tcp/udp" option.

7.) Where it says "external port", "redirect port", or something similar. Put the number 25565 into all of these fields, this will open the default Minecraft port of 25565 to other networks.

8.) Where it says "Internal IP address", "Computer's IP", or something similar. Type in your computer's IP, you can find this by typing "ipconfig" into Command Prompt, and finding the "IPv4 Address" section, which will tell you your computer's internal IP.

9.) Add/confirm what you have put into the port forwarding page. It should add it to the list of port forwards.

10.) Check if your port is open by going [ Register or Signin to view external links. ] , and inputting the port as "25565", if it tells you your port is open, everything is good! If not, go back and try the steps again, if it still doesn't work, post what kind of router you have, and what problems you're having.

Note: If you've port forwarded but your port still seems to be closed, you may want to take a look at your firewall settings, either the Windows Firewall or your antivirus firewall may be blocking the port you are trying to use. You can find the Windows Firewall settings in the control panel, and if you have an antivirus program with a firewall, you should try looking in the program's settings.



Bukkit Plugins


Bukkit plugins can be very useful once you get to know your way around them, and how they can help yothetechgame.org install a Bukkit plugin, you need to be using the Bukkit server software. You cannot do this with a vanilla server.

First, you need to find a plugin that interests you, you can find an index of plugins [ Register or Signin to view external links. ] Once you've found a plugin that you'd like to install to your server, go ahead and click the download button on the plugin's BukkitDev page. It should take you to a list of recent changes or files, click the download button again to download the latest file. It should start downloading a .jar file for you, if you have a .zip or .rar, you can extract those with 7-Zip (Windows Only). You may have some other folders with your .jar file inside the archive, you will need to place the .jar file and all folders that came with it inside your "plugins" folder, in your minecraft_server directory that you created when you installed Bukkit.
Now, start/restart your server, the plugin should load up and start working! If not, read the plugin's page to check if it has any special installation instructions, and contact the developer for further help.

Some plugins that you may find useful for your server, and that I would recommend are:

  • PermissionsEx
  • WorldEdit
  • WorldGuard
  • Hawkeye / Logblock / Guardian / BigBrother / Whatever they're using these days Posted
  • Image
  • NoCheat+


Be sure to look around in the plugins section on the Bukkit website to look for more plugins, there are quite a few that you might find useful.

Note: Only download plugins from BukkitDev, as there are other website that can release plugins that can harm your server in various ways. Make sure you trust what you're downloading.



Creating a Whitelist


A whitelist is what stops unwanted players from getting into your server, it only allows people you have on your whitelist into the server. A whitelist is not recommended if you want to have a public server, but can sometimes be useful when trying to stop griefers. To enable whitelisting, go to your minecraft_server folder, and open the server.properties file with your favourite text editor. Go to the part that says "white-list=false", and change this to "white-list=true", save the file. To add somebody to the whitelist, go to the server console, and type "whitelist add playersname", replace "playersname" with the person you wish to whitelist. For example, if you were whitelisting "bob383", you would type "whitelist add bob 383", to remove somebody from the whitelist, simply type "whitelist remove playersname".


Advertising Your Server

To get some more players on your server, you'll need to advertise. One of the easiest ways you can advertise your server is right here on the Minecraft Forum, in the servers section. Simply click on "Survival Servers" or "Creative Servers" depending on which your server is, then create a new topic. Your title should be able to catch the attention of players looking for a server, while trying not to make their eyes bleed. Try to talk about the features of your server, and, if you have a whitelist, post an application form people can use to apply to be whitelisted on your server. The application should be long and detailed, to make sure you're only allowing people that you need on your server. Do not accept applications that do not meet your standards, or you may have a bunch of unwanted people running around your server. Some other useful places to advertise would be PlanetMinecraft, and MinecraftServerlist.


Moderating your Server

Moderating your server can be a tricky task if you have a public server, there are always people that need assistance, need to know commands, and there are others that try to cause havoc, such as griefers, and spammers. To effectively moderate your server, you'll need to know how and when to ban, kick, and tell players off for doing something wrong. If somebody is griefing, it is important that you create a place for moderators to note down when they ban them, this can be helpful when somebody is unhappy with their ban later on. It may also be a good idea to create a ban appeal section on your forum topic, or website, if you have one. This can satisfy people if they feel they have been unfairly banned, because they have the ability to protest against this ban. And if you feel that their ban was unjust, you can unban them. It's important that you know all of the moderation commands, if you have Bukkit plugins to help with banning/kicking, such as MCbans. It's also good to have a plugin to mute people, if they're spamming. An obvious way to increase your moderation productivity is to find moderators and admins to help out with your server, which will be explained in the next step.



Picking Staff


Finding staff that are reliable and mature can be a tedious task for a busy server owner, but never fear, there are multliple tools are your disposal that can be useful for finding people that are able to help you with your dilemma. One sure-fire way to find staff is to create a topic in the looking-for section on these forums. The application template in your post is important, you need to make sure you request necessary information from your potential future staff members, such as previous experience, age, and in-game name. Make sure you request a hefty amount of information from these users, as you need to be able to trust them. Make sure that you only accept staff applications that are presentable and include the information that you're requesting. Grammar often shows people's dedication to becoming a staff member, but is not always a determining factor, as staff members can be extremely reliable, but have bad grammar. Make sure you only pick people for staff if you trust them, you don't want somebody becoming a staff member and then going around griefing the map now do you? If you have a website for your server, you could also put an application area there, as long as you get enough traffic from your server there.

You could also watch the players on your server, and look for possible server moderators and admins, obviously, this will take longer than a simple application, but it is a good way to get some trusted staff members.





Credit to minecraftforum.net

The following 12 users thanked Daw for this useful post:

Musket (07-22-2013), Spintastic (07-22-2013), Maul (07-22-2013), xSlinKsZ (07-22-2013), Emazed (07-21-2013), Katsumi (07-21-2013), Ethan (07-21-2013), 240 (07-21-2013), nebo (07-21-2013), Brigand (07-21-2013), undisclosed (07-21-2013), HKM (07-21-2013)
#2. Posted:
Cokes
  • Summer 2018
Status: Offline
Joined: Jul 01, 201311Year Member
Posts: 3,957
Reputation Power: 598
Status: Offline
Joined: Jul 01, 201311Year Member
Posts: 3,957
Reputation Power: 598
Thanks for the tut bro. I could really use this.
#3. Posted:
CHP
  • Gold Gifter
Status: Offline
Joined: Jan 03, 201113Year Member
Posts: 5,774
Reputation Power: 280
Status: Offline
Joined: Jan 03, 201113Year Member
Posts: 5,774
Reputation Power: 280
dang man. great post as usual. very long and very detailed. i hope this gets the attention it deserves.
looking forward to what you have to post next!
#4. Posted:
Brigand
  • Winter 2023
Status: Offline
Joined: Apr 07, 201311Year Member
Posts: 4,097
Reputation Power: 4228
Status: Offline
Joined: Apr 07, 201311Year Member
Posts: 4,097
Reputation Power: 4228
Great topic.
Its very detailed and informative.
I could use it.thanks daw.
#5. Posted:
Mentalist
  • Comment King
Status: Offline
Joined: Dec 31, 201112Year Member
Posts: 3,342
Reputation Power: 147
Status: Offline
Joined: Dec 31, 201112Year Member
Posts: 3,342
Reputation Power: 147
Another great topic by daw, keep it up!
#6. Posted:
nebo
  • TTG Commander
Status: Offline
Joined: May 18, 201113Year Member
Posts: 6,549
Reputation Power: 203
Status: Offline
Joined: May 18, 201113Year Member
Posts: 6,549
Reputation Power: 203
Wow! Really detailed and explains a lot, comes in handy. Thanks daw!
#7. Posted:
Wildd
  • Gold Gifter
Status: Offline
Joined: May 04, 201212Year Member
Posts: 500
Reputation Power: 33
Status: Offline
Joined: May 04, 201212Year Member
Posts: 500
Reputation Power: 33
Really nice post man! Im sure this will help a lot of people trying to make/start a new minecraft server!
#8. Posted:
Shoegame
  • Resident Elite
Status: Offline
Joined: Nov 05, 201212Year Member
Posts: 276
Reputation Power: 110
Status: Offline
Joined: Nov 05, 201212Year Member
Posts: 276
Reputation Power: 110
Sweet! Thanks for the tutorial man
#9. Posted:
ImNotPhlegmAnymoreOK
  • TTG Fanatic
Status: Offline
Joined: Jun 02, 201212Year Member
Posts: 4,039
Reputation Power: 185
Status: Offline
Joined: Jun 02, 201212Year Member
Posts: 4,039
Reputation Power: 185
Thanks daw. Very informative. Looks like I'll be using Bukkit, I was planning on starting up a server.
#10. Posted:
Losers
  • TTG Contender
Status: Offline
Joined: Jan 28, 201113Year Member
Posts: 3,203
Reputation Power: 111
Status: Offline
Joined: Jan 28, 201113Year Member
Posts: 3,203
Reputation Power: 111
even tho am not guna make a server but I gotta say, this is well done


and now I know difference between Bukkit and Vannila server
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.