Simple install script for minecraft servers
Disclaimer: currently only supports vanilla minecraft servers
- Clone this repository
git clone https://github.com/piciakk/mcserver-install
- Go to the cloned repo
cd mcserver-install
- Install Java (or OpenJDK), if you haven't already done that
- Install the dependencies
pip install -r requirements.txt
- Run the installer
python install.py -v 1.12.2 -s vanilla
Arguments:
-v
: minecraft server version to install (latest by default)
-s
: minecraft server type (vanilla by default)
-h
: display help page
python remove.py
import install # import the install.py library
install.getLatestVersion() # returns latest minecraft version
install.installServer(servertype, serverversion)
# servertype can be vanilla, bukkit, sponge, etc.
# serverversion can be any minecraft version (that you can use in the launcher)
install.removeServer() # remove the server directory