Home›Java›Mods›MCInitializer
ModsJava

MCInitializer

Minecraft Java mod. Download on the author's site.

⬇ Download on Spigot
A minecraft server initialize script that allows you to manage multiple servers.

Features
Dependencies
screen, rsync, java

Getting Started
Installing Dependencies
Installing screen & rsync

On Red Hat-based distributions:

yum install screen
yum install rsync
On Debian based systems such as Ubuntu:

apt-get install screen
apt-get install rsync
Installing Java 8

On Red Hat-based distributions:

yum install java
On Debian based systems such as Ubuntu:

apt-get install openjdk-8-jre
apt-get install openjdk-8-jdk
update-alternatives --config java
Enabling MCInitializer
  1. Symlink the minecraft script to /etc/init.d/minecraft

    <i>sudo ln -s ~/mcinitializer/minecraft /etc/init.d/minecraft</i>
    Set the correct permissions on the minecraft script

    <i>chmod 755 ~/mcinitializer/minecraft</i>
    Finally, update rc.d to start the servers when the system starts

    <i>sudo update-rc.d minecraft defaults</i>

  2. Edit the variables in config.example once done, rename it to config

  3. Edit crontab

    As the server user you're running the script as:

    <i>crontab -e</i>

    Add these lines:

    <i>#m h dom mon dow command
    54 0,11 * * * /etc/init.d/minecraft say 'Server restart in 5 minutes!'
    58 0,11 * * * /etc/init.d/minecraft say 'Server restart in 1 minute!'
    59 0,11 * * * /etc/init.d/minecraft restart
    02 05 * * * /etc/init.d/minecraft backup
    * * * * * /etc/init.d/minecraft command 'save-all'
    */30 * * * * /etc/init.d/minecraft to-disk</i>
Commands
To view all commands do

/etc/init.d/minecraft help

To view all server commands do

/etc/init.d/minecraft SERVER_NAME help

Console Access
Will let you connect to see the servers console

/etc/init.d/minecraft SERVER_NAME screen

To exit console:

Ctrl+A D

Server Status
Will give you a list of all the servers for the user (all servers if root) and their online status.

/etc/init.d/minecraft status
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MCInitializer is a free Minecraft Java mod. Downloaded 471 times (via Spigot). Download it and open it directly in the game.

Explore more