aboutsummaryrefslogtreecommitdiff
path: root/mcwrapper
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-12-11 20:02:20 +0100
committerKarel Kočí <cynerd@email.cz>2015-12-11 20:02:20 +0100
commitef0c99bfbb28a5cdf95711d3de7a0f0d9295722e (patch)
treeebf504554616cc9b924ab9c15ccccc4f86b6fdb9 /mcwrapper
parent324c3a64ef7a003b07eb902c4d8f07b8375690e9 (diff)
downloadmcserver-wrapper-ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e.tar.gz
mcserver-wrapper-ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e.tar.bz2
mcserver-wrapper-ef0c99bfbb28a5cdf95711d3de7a0f0d9295722e.zip
Change verbose level for printing auto-shutdown messages
Diffstat (limited to 'mcwrapper')
-rwxr-xr-xmcwrapper4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcwrapper b/mcwrapper
index fd729e6..565e677 100755
--- a/mcwrapper
+++ b/mcwrapper
@@ -56,7 +56,7 @@ def load_conf(config_file):
def autoshutdown_enable():
global shutdownTimeout
if (conf.timeout > 0):
- if (conf.verbose_level > 0):
+ if (conf.verbose_level >= 0):
print("Automatic shutdown after " + str(conf.timeout) +
" min.")
shutdownTimeout = Timer(conf.timeout * 60.0, __server_send_stop__)
@@ -68,7 +68,7 @@ def autoshutdown_disable():
try:
shutdownTimeout.cancel()
del shutdownTimeout
- if (conf.verbose_level > 0):
+ if (conf.verbose_level >= 0):
print("Automatic shutdown disabled.")
except NameError:
pass