Skip to content

1MB BuildTools.sh

Floris edited this page Dec 16, 2021 · 7 revisions

1MB-BuildTools.sh

Information

The buildtools shell script is made to help server owners get buildtools' latest jar file to make the latest spigot server jar so they can run a Minecraft server with plugins.

We use this for our own (standalone) servers daily. It checks if there's a new buildtools jar to be downloaded. It will only download a new buildtools jar if there is one made available for Minecraft 1.18.1.

And if there's a new Spigot release (--rev build for mc 1.18.1) it will build one. If you've run the script before and it has a cache.txt file with the same or older spigot build id, it will not build one.

We use this so we only have to build a new jar when there's a new spigot nightly, and only once. All the servers can then use this new jar on their next (daily) restart (just explaining, that part isn't in this public script).

So, how to use this?

This is for Minecraft 1.18.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 .sh file into an empty directory, with your terminal change to this directory. And if this is the first time you use it: chmod a+x 1MB-BuildTools.sh and then each time you wish to use this: ./1MB-BuildTools.sh

If it errors, you probably need to specify the path to your java binary.

Download?

You can view the source of the script here: 1MB-BuildTools.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 buildtools.jar from Spigotmc requires git and java, and this shell 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 / perl / java / git / curl or wget, if that all works, it can remote get the jar file, and run it per the configuration to build a spigot jar for that version.

Clone this wiki locally