-
Notifications
You must be signed in to change notification settings - Fork 5
1MB minecraft.sh
The start shell script is made to help server owners run a Minecraft server with plugins.
We use this for our own (standalone) servers daily. We use the 'start' sh script to fork an instance to the background with screen. And we use the 'Minecraft' shell script to start an instance, without forking it.
You need both scripts to fork, you need just the minecraft .sh script to start things up.
I recommend to edit the .sh file and change some of the configuration settings. Mind you, this is made for our 1.16.1 builds, and hasn't been properly tested on other versions.
This is for Minecraft 1.16.1, Spigot / Buildtools. Not for paperspigot or sponge, forge, etc. This is made for our macOS / linux distros, it works for us. Your distro might be different (or a different version). We've tested the public version of this script on macOS High Sierra, Mojave, Catalina and Ubuntu 14/16/18/20 lts.
Put the start and minecraft .sh files into your spigot directory where the jar resides, with your terminal change to this directory.
And if this is the first time you use it: chmod a+x 1MB-minecraft.sh
(and chmod a+x 1MB-start.sh
and then each time you wish to use this: ./1MB-minecraft.sh
Note: this will NOT fork an instance to the background (starts normally), if you wish to just start it with the option to fork, use just the start sh script.
If it errors, you probably need to edit the .sh script(s) properly.
You can view the source of the minecraft script here: 1MB-minecraft.sh You can view the source of the start script here: 1MB-start.sh
You can request basic support here: github.com/mrfdev/1MB/issues
This is a bash shell script, made for mainly my macOS solutions, but updated to work with Ubuntu, other operating systems .. eh, it's a gamble. If it doesn't work and you have a fix for a unified solution feel free to contribute.
The engines for the java edition of Minecraft require java, and this script will check what's installed on the os (or not) and either uses it or reports back it can't use it (and hopefully links to some info on how to install it for that os).
bash / java / if that all works, it can run the jvm per the configuration to start the minecraft server.
todo: for later
A script that can be run stand alone to start a Minecraft server. If the jar's are found and it can detect the proper version of Java, it will try to load Paper, and falls back to Spigot. This helps you quickly start a server with your preferred configuration, and easy to drop in on any directory where a server jar. It's a sibling script to 1MB's start script (see below). This is made for my macOS, and made compatible with most Ubuntu versions. Works on Java 8 and 11, 64bit.