migrate to custom RCON client
This commit is contained in:
@@ -24,12 +24,13 @@ if ! test -f /minecraft_data/eula.txt; then
|
||||
cp /defaults/eula.txt /minecraft_data/eula.txt
|
||||
fi
|
||||
|
||||
|
||||
export MCRCON_PASS=$(grep "^rcon.password=" /minecraft_data/server.properties | cut -d '=' -f 2- | head -n 1)
|
||||
|
||||
# shutdown process
|
||||
function shutdown {
|
||||
echo "stopping Minecraft server..."
|
||||
/usr/bin/mc-rcon/mcrcon -p ${MCRCON_PASS} -w 5 "say Server is restarting!" save-all stop
|
||||
/usr/bin/wircon.pyz -H localhost -p ${MCRCON_PASS} -E /usr/bin/restart.py
|
||||
wait $SERVER_PID
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user