Skip to content

Setting up a Test Server

As a starting point for your questing journey, we will set up a local development installation for BetonQuest.

Requirements

  • No further requirements

Related Docs

  • No related documentation

Why do I need a local server?!πŸ”—

You might think that a local test server is useless because you already have a remote server. There are multiple reasons why you really need one:

  • Working on a live server could lead to crashes and bugs that your players will have to deal with.
  • Making quests can, especially for new questers, lead to unexpected behavior. This can be anything from spawning hundreds of mobs to endlessly giving out items to a player. Exactly the stuff you don't want to happen.
  • Working with a test server is usually faster and therefore more productive. You can restart it all the time, change plugin configurations as you wish, etc.

Setup of your local serverπŸ”—

  • Step 1
    You have probably heard of Spigot, the biggest server software for Minecraft. We are going to install Paper (an improved version of Spigot) on your computer. Head over to Papers download page and download the latest version of Paper.

  • Step 2
    Create a new folder for the server in a place you can easily access. Making a new folder is important because the server will create a lot of files that would mess up your Desktop etc. Move the downloaded file in the newly created folder.

  • Step 3
    Rename the file to just "paper". If the file name contains a ".jar" ending make sure to keep it.

  • Step 4
    You need a start script to start your server. Open your text editor and create a file named "start.bat" (for Linux and Mac: "start.sh"). Place it next to the "paper.jar". Open it and copy this into it:

    java -Xms1G -Xmx1G -jar paper.jar --nogui
    pause
    
    Make sure to save it as a ".bat" file (for Linux and Mac: ".sh")! If you save it as a ".txt" file it will not work.

    What does this do?

    This script tells Java to search for a file named "paper.jar". The 1G setting in both the -Xms and -Xmx options is how much RAM you want to give to the server (1G = 1 GigaByte RAM, 2G = 2 GigaByte RAM, 700M for 700 MegaBytes, etc.). You should not need more then 1GB in most cases.

  • Step 5
    Start the server by double-clicking on the start file. Please wait until the server tells you to accept the EULA. Now check the server's folder. You will find a bunch of new folders and files that have been generated. You need to accept the EULA (Minecraft's End-User-License-Agreement) to be able to run a Minecraft server. Open up the "eula.txt" file, read the terms and agree by setting eula=false to eula=true.

  • Step 6
    From now on, the start file can be used to start the server.
    You can stop your server by typing stop. Alternatively, you can press Ctrl+C (for Mac: Cmd+C).
    Restart the server and connect to it via the server address localhost with your Minecraft game.

  • Step 7
    Once you joined the server, enter the following command in your server's console: op <YOUR-NAME>
    This will give you all permissions on the server, which is required for the following steps.


Next Step: Install Dependencies