The Meaning of Life, the Universe, and Everything.
Linux Minecraft Server Manager (LMSM)
Created by Jared_Brian_
This is a simple program designed to run over your Minecraft server in order to run your server cleanly and without having to type in commands every time you want to start a server. You can also create and manage backups easily or not at all (if you want).
This program is specifically designed for Linux systems however this is a bash script and from what I understand is also supported on mac however it hasn't been tested on any mac and I have no idea if it works on the mac OS at all (if someone can let me know if it does if you have a mac that would be great). And unless you are some kind of wizard it won't work on windows at all.
Also, This is an open source project and you can use this to your heart's content, just make sure to give credit
*This program has noGUI and must be run in a terminal (which shouldn't be a problem because normally you would have to run a Linux server in a terminal anyway) it is designed to be as simplistic as possible as to be easy to use and require very little interaction after initial setup.
*It makes it so you can run a server with a desktop icon or launcher if setup correctly or with a single command in the terminal.
*It will create backups (or not at all) after you stop the server and will automatically delete the oldest backup after the max backup limit is passed (default is 4) and store the backups in any folder you want (as long as it was empty).
*I haven't tested this fully but it should theoretically work with all types of servers. Vanilla, modded, bukkit, alpha 1.0 to the newest snapshots but if you find a version that doesn't work please let me know.
*All of the same server commands such as /stop and /stay work and are unaffected.
*The files can be put anywhere on your computer and can run a server placed anywhere else as long as you set up the config correctly.
*It Can run the server with or without the Minecraft server GUI (not recommend as on Linux it creates a lot of lag).
*It Can run a server with any amount of ram you want.
There should be 3 files in the .zip file, a runnable bash file named LMSM, a LMSM.cfg file, and a README file.
To run the manager (the LMSM bash file) make sure you have given the bash file permission to run and have Java installed.
(on Linux mint 18.1 right click on the file go to properties then to permissions and check the box saying allow executing file as program).
then open up the LMSM config and adjust all of the settings as necessary.
***note if this is your first time using this program you will have to change the config in order for the server to run.
You can edit the config by opening the LMSM.cfg file and following the instructions there, for the first time setup, the most you should have to change is the server directory and the world name.
Then just double click on the bash file and click run in terminal and that's it.
***These next instructions are specifically for Linux Mint 18.1 it depending on your Linux distro you may have to do your own research on this but from what I understand these instructions should be the same for most people.
If you would like to be able to make a desktop launcher for your server you can do that by making a "bin" folder in your home folder.
(if you do not already have one you may have to restart your computer after making the bin folder).
and then placing the entire LMSM file into there.
That will allow you to open any terminal and type LMSM and it will run the server.
*** if this does not work for some reason use the next set of instructions
So using this make a new launcher, right-click on your desktop and then go to Create new launcher here...
Then all you need to do is give it a name, enter LMSM as the command and check the box that says run in terminal and click Ok.
Now you can just run that launcher to start your server.
***note running the command LMSM will not work if it is not in your bin folder and requires at least one restart for your computer to see the bin folder as a place to see commands.
If you want to have it in a different directory you can just click the browse option in the launcher creation window and then find where you have your LMSM bash file located and it will do the same thing.
If you want multiple servers or more than one LMSM file in your bin folder you can just rename the LMSM bash file and folder to whatever you want.
***note the folder name and the bash file name do not have to be the same.
and then the new name of the bash file will be your new command to run the server with.
Just as long as you don't change the name of the config file or move it into a different directory the server will run.
The backups folder will delete anything else that is in there (or at least most of it) besides the backups it creates so please do not use an existing folder for backups.
To reload a world from your backups folder all you have to do is delete the date given to the backup or rename the backup to exactly to what the world file is called and place it in your server directory (replacing the current one).
I am not responsible for any deleted files or corrupted game worlds. please use at your own risk.
*if you are unable to just run LMSM or whatever you have the name as in the terminal
make sure the whole LMSM file is in your bin folder
make sure you are typing the command correctly
*if you get this error "/FILE_TO_LMSM_DIRECTORY/LMSM: line 8: /FILE_TO_LMSM_DIRECTORY/LMSM.cfg: No such file or directory"
make sure the config file is the same folder as the bash file
*if you get this error "Error: Unable to access jarfile minecraft_server.VERSION.jar" or find: ‘backups/*’: No such file or directory
make sure all of your paths in the config are set correctly and that you have the correct version of Minecraft set
make sure if any of the directories have a space in the name that you use a \ just before the space