Setup Minecraft server

How to Setup Minecraft server

Install Minecraft server

  • If you not have server. I recommend you to use AWS or Azure to create free Windows or Linux server. You will get public IP. It no Hamachi require :)
  • Install OS what you want
  • Install Java 6 or 7
  • Download craftbukkit http://dl.bukkit.org/downloads/craftbukkit/list/rb/
  • After download Put .jar file in any folder.
  • Write a script to run .jar file. Open Text editor and paste a below script

java -Xmx1024M -jar craftbukkit.jar
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
java -Xmx1024M -jar craftbukkit.jar
cd "$( dirname "$0" )"
java -Xmx1024M -jar craftbukkit.jar

  • Save file in the folder it's contain .jar file
    • Windows: Save to run.bat
    • Linux: Save to run.sh (Chang permission to allow execute by command "chmod a+x run.sh")
    • OS X: Save to run.command (Chang permission to allow execute by command "chmod a+x run.command")
  • Run it
    • Windows: Double click the .bat file
    • Linux: cd to the .jar folder type command "./run.sh"
    • OS X: Drag run.command into Terminal.app and return
  • Afetr run the command. Craftbukkit will create many file in the folder.


Now your Minecraft server is running but you cannot access it.
  • In the terminal or Dos window type "stop" to stop the server
  • Go to the .jar folder. Now you see a lot of file
  • Open server.properties and edit these line
  • Now you can playing Minecraft on your server
    • Execute the file (run.bat or run.sh)
    • Open Minecraft in your computer
    • Select Multiplayer mode
    • Add server and type your Server IP or Hostname

Install plugins

This step is optional but you may need it. Plugins you may need for your Minecraft server are Essentials and PermissionEX

How can plugins do
  • Essentials plugin come with many thing you need in minecraft. eg. Warp, Home or Sethome, Heal, Time, Weather, Teleport etc.
  • PermissionEX are allow you to create user group, Assign user to group, Allow group or user to use each command in game
Install plugin

Plugins Configuaration

Do not edit configuration file directly. To manage permission with PermissionsEX. Let's type the command (https://github.com/PEXPlugins/PermissionsEx/wiki/Commands) in minecraft terminal screen.

For Essentials plugin. It command is here http://wiki.ess3.net/wiki/Command_Reference