Skip to content

1MB start.sh

Floris edited this page Dec 16, 2021 · 8 revisions

1MB-start.sh

Information

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.

So, how to use this?

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.18.1, Spigot / Buildtools. Not for 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-start.sh (and chmod a+x 1MB-minecraft.sh and then each time you wish to use this: ./1MB-start.sh

Note: this will fork an instance to the background, if you wish to just start it without the option to fork, use just the minecraft sh script.

If it errors, you probably need to edit the .sh script(s) properly.

Download?

You can view the source of the start script here: 1MB-start.sh You can view the source of the minecraft script here: 1MB-minecraft.sh

Support?

You can request basic support here: github.com/mrfdev/1MB/issues

What it checks for

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 not this, but the sibling shell script 1MB-minecraft.sh 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 / screen / if that all works, it can try to fork a session of the jvm to the background, and run it per the configuration to start a Minecraft server (if it can't fork, it will just try to run the sibling script)

Update

Some new info, it now lets you enter a short simple a-z word on startup, this will then be used as _serverName for screen/tmux.

Added support for tmux - it will favor screen though.

Clone this wiki locally