-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsourceme
More file actions
25 lines (21 loc) · 790 Bytes
/
sourceme
File metadata and controls
25 lines (21 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Script Options
export no_window=true
export spigotType="paper" # Bukkit, Spigot, or Paper
export bungeeType="waterfall" # bungeecord or waterfall
export commandSendMode="screen" #Stop by recursive 'screen', or by hub 'commandsync'
# Functions
function bgsc { # Start screen session in background if it doesn't exist
if screen -list | awk '{print $1}' | grep -q "$1$"; then
echo "screen $1 already exists"
else
screen -d -m -S $1
fi
}
export -f bgsc
# Variables
export serverList="bungee hub survival creative games skyblock"
export HeroiCraftDIR="$HOME/HeroiCraft" && export mainDir="$HeroiCraftDIR" # Scripts use both
export mcVer="1.10"
export mcRam="3" #RAM in GB
source $HeroiCraftDIR/scripts/private/privateSrc # Store passwords, etc in here to be ignored by git