Setting Up a Spigot Minecraft Server on Linux

Setting up and maintaining a Spigot Minecraft server can be one of the most educational things anyone can do. In fact, Minecraft was specifically mentioned in CyberWar for “creating a lot of great technologists out there” because of its command-line driven interface used by players in the client and admins maintaining the server.

  1. Open a terminal.
  2. Create a minecraft directory.
    1. mkdir minecraft
    2. cd minecraft
  3. Download BuildTools.jar from https://spigotmc.org
  4. mv ~/Downloads/BuildTools.jar . (don’t forget the dot)
  5. java -jar BuildTools.jar
  6. java -jar spigot<TAB>
  7. vi eula.txt (or nano if you need)
  8. change false to true
  9. ip a - lookup your IP address
  10. start Minecraft client and add server for that IP address
  11. return to terminal
  12. java -jar spigot<TAB> to startup server
  13. return to Minecraft client (not full screen)
  14. refresh to see your server list is now green
  15. connect to your server
  16. invite a friend to connect to your new server locally
  17. notice how the terminal updates as you connect
  18. > op YOURMCUSER to grant op to yourself and friends
  19. /gamemode c to give yourself creative
  20. return to your terminal
  21. > say welcome to the server to broadcast to everyone
  22. return to your Minecraft client
  23. full screen if you want
  24. mess around a bit in your world
  25. return to server when ready to stop
  26. > stop to stop your server safely
  27. remove stuff you don’t need with the following:
  28. ls - show all the stuff
  29. rm -rf Spigot Bukkit CraftBukkit work apache<TAB> BuildData

Don’t forget to regularly copy your whole minecraft directory to a USB stick for backup.