Skip to content

Instantly share code, notes, and snippets.

@RobertBouillon
Created April 6, 2020 17:47
Show Gist options
  • Save RobertBouillon/1f990c5bb1dad5ae454e59bcff32373a to your computer and use it in GitHub Desktop.
Save RobertBouillon/1f990c5bb1dad5ae454e59bcff32373a to your computer and use it in GitHub Desktop.
Linux heler scripts for MC
robear@MinecraftServer:/etc/profile.d$ cat games.sh
function ark(){
/home/robear/ark.sh
}
function ftb(){
/home/robear/ftb.sh
}
robear@MinecraftServer:/etc/profile.d$ cat ~/ftb.sh
#! /bin/bash
if ! screen -list | grep ftb
then
(cd /usr/games/mc/revdom/ && screen -dmS ftb ./ServerStart.sh)
fi
screen -r ftb
robear@MinecraftServer:/etc/profile.d$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment