Skip to content

PiciAkk/mcserver-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcserver-install

Simple install script for minecraft servers

Disclaimer: currently only supports vanilla minecraft servers

Usage

  1. Clone this repository
git clone https://github.com/piciakk/mcserver-install
  1. Go to the cloned repo
cd mcserver-install
  1. Install Java (or OpenJDK), if you haven't already done that
  2. Install the dependencies
pip install -r requirements.txt
  1. 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

Removing the server

python remove.py

Using as library

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

Releases

No releases published

Packages

No packages published