Are you looking for the code for preparing and starting a Spigot server? If so, you have to read this article until the end as here we are going to talk about starting Spigot server. Make sure that you do not miss any information.
When you are going to start Spigot server, first you will need to download the latest BuildToolsGUI.exe. To use this program, you must have .NET 4.5 installed. If you have used your PC/computer for a while, you may already have it. If not, you are able to get the installer. The next step is preparing your server. You need to open the BuildToolsGUI.exe file. If you want, you are able to change the version with the drop-down menu. Easily, you are able to click “Run BuildTools”. It will start running. You need to wait a few seconds until it has finished running. Usually this will take a while, depending on your connection and your computer.
After it is done running, you have to open the BuildTools folder created in the same directory as the executable. Then, you have to make a folder on your desktop called “Spigot”. You are able to copy the file “spigot-1.x.x” to the Spigot folder, and rename it to spigot. Afterwards, you are able to open a text editor such as Notepad, and paste the following code in:
java -Xmx1024M -Xms1024M -jar spigot.jar
The code above is the code that you will use to start your Spigot server. In your text editor, you are able to select File > Save As, and navigate to the Spigot directory. Then, change the name of the file to run.bat.
To start your Spigot server, you have to double-click your run.bat in the Spigot directory. In this step, you need to open eula.txt in the Spigot directory, and change eula=false to eula=true. The last step, you need to double-click run.bat again to start the server. Some new files are going to be created in the Spigot directory. Finally, your Spigot server is up and running. To connect to it, you will need to open the version of Minecraft your server is on, please click Multiplayer, then Direct Connect, and type in localhost as the server IP. You must connect to the world that was generated a moment ago.
Now, you will be able to start to customize your server with the various options included and plugins that you can download. With the Command Window still open, you are able to type op and press Enter. You are an operator and have privileges to execute commands on the server. A file to play around in is the server properties file. You have to open it up with a text editor and play around. After you are done on your server, you are able to type stop into the console to stop the server. For installing a plugin, you need to place it in the Plugins folder in your Spigot directory. To start your server again, easily you are able to double-click run.bat.