- Tested Minecraft Versions:
- Languages Supported:
- You can translate the messages you want in the config.
Server Launcher for Discord (or abbreviated SLD) - it is a very small and simple program that allows you to run your server through Discord. The program was written for my personal needs, but I decided to put it out for general use.
How it works?
Very simple. The program runs on your VPS or Dedicated Server and waits for a start command to be sent to Discord, after which it will run the start.sh script, which will start your server.
1. Click on the download button and download the zip archive, which contains the Java application and its config.
2. Place the contents of the archive in your server directory where your server startup script is located.
3. Open the sld.properties config with any text editor.
4. Insert the token of your Discord bot into the config and, if necessary, change the rest of the config parameters.
5. Launch SLD as a regular Java application. If you are use Linux, then I highly recommend using Screen or something similar to keep the application running in the background.
6. Go to discord and create a role that will allow you to run the server (the default is SrvMgr).
7. Now enter the start command on any channel (by default it is !startserver) and wait for your server to start. That's all.
Important: in your server startup script (start.sh) use Screen or similar programs, otherwise you will not be able to access your server console after launching via SLD.
Example of launch line/script for SLD:
screen -d -m -S sld java -Xmx128M -jar SLD-1.2-all.jar
Example of start.sh script for your server:
screen -d -m -S server java -Xmx8G -jar server.jar
Default config:Code (Text):# Your bot's Discord token.
# The required role that will allow the server to run.
required.role = SrvMgr
# Start command for Discord.
discord.command = !startserver
# Server start command. Enter a string or script name.
# The script must be in the same directory as SLD.
# If you are running the server on Linux,
# then I highly recommend using Screen,
# as without it you will not be able to access the server console.
launch.script = ./start.sh
# Server start message.
starting.message = The server will be running soon...
# Message about lack of launch rights.
# Will be displayed if the command executor does not have the required role.
noperm.message = :no_entry_sign: You do not have permission to start the server.
If you liked this tool, please leave a review.