summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2016-05-22 00:31:25 +0200
committerGordian Edenhofer2016-05-22 00:31:25 +0200
commitf2baa544d9781c873ddff1eee9f5ce2285a0a03d (patch)
tree9946a362454369c44964f51fedd602433c98ed3b
parent9fafea9acfad5efe2525d3a1171ae0f7d38c0141 (diff)
downloadaur-f2baa544d9781c873ddff1eee9f5ce2285a0a03d.tar.gz
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
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rwxr-xr-xminecraftd.sh4
3 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eb419de6539..be4e6015f57 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 8604049a00a..bed1342a467 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 3013eed6522..62148ecb3de 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