From f2baa544d9781c873ddff1eee9f5ce2285a0a03d Mon Sep 17 00:00:00 2001 From: Gordian Edenhofer Date: Sun, 22 May 2016 00:31:25 +0200 Subject: [PATCH] upgpkg: minecraft-server 1.9.4-3 Fix bug on when to reset the no_player time: a false elif was used instead of a simple else. Typo. upgpkg: spigot 1.9.4-2 --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- minecraftd.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index eb419de..be4e601 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = minecraft-server pkgdesc = Minecraft server unit files, script, and jar pkgver = 1.9.4 - pkgrel = 2 + pkgrel = 3 url = http://minecraft.net/ install = minecraft-server.install arch = any @@ -27,6 +27,6 @@ pkgbase = minecraft-server md5sums = fef6fadd0739ae03ff71ba61025be207 md5sums = afb84ad0316af0aca421b36eaa2bbd90 md5sums = 00045683c06924d765ac14887218ffcc - md5sums = 0d0a8999614edeb1614f425b48d0878c + md5sums = 74e5b9dc250b66bff194bed3ebf1c61e pkgname = minecraft-server diff --git a/PKGBUILD b/PKGBUILD index 8604049..bed1342 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=minecraft-server pkgver=1.9.4 -pkgrel=2 +pkgrel=3 pkgdesc="Minecraft server unit files, script, and jar" arch=('any') url="http://minecraft.net/" @@ -27,7 +27,7 @@ md5sums=('292feb3085809e714da2ca75514b9d5b' 'fef6fadd0739ae03ff71ba61025be207' 'afb84ad0316af0aca421b36eaa2bbd90' '00045683c06924d765ac14887218ffcc' - '0d0a8999614edeb1614f425b48d0878c') + '74e5b9dc250b66bff194bed3ebf1c61e') _game="minecraft" _server_root="/srv/minecraft" diff --git a/minecraftd.sh b/minecraftd.sh index 3013eed..62148ec 100755 --- a/minecraftd.sh +++ b/minecraftd.sh @@ -78,7 +78,7 @@ idle_server_daemon() { no_player=0 while true; do - echo -e "no_players: ${no_player}s\tcheck_player_time: ${CHECK_PLAYER_TIME}s\tidle_if_time: ${IDLE_IF_TIME}s" + echo -e "no_player: ${no_player}s\tcheck_player_time: ${CHECK_PLAYER_TIME}s\tidle_if_time: ${IDLE_IF_TIME}s" # Retry in ${CHECK_PLAYER_TIME} seconds sleep ${CHECK_PLAYER_TIME} @@ -111,7 +111,7 @@ idle_server_daemon() { [[ $? -eq 0 ]] && echo "Netcat caught an connection. The server is coming up again..." IDLE_SERVER="false" ${myname} start fi - elif [[ $? -eq 0 ]]; then + else # Reset timer since there is an active player on the server no_player=0 fi