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
This commit is contained in:
Gordian Edenhofer 2016-05-22 00:31:25 +02:00
parent 9fafea9acf
commit f2baa544d9
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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"

View File

@ -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