aboutsummaryrefslogtreecommitdiff
path: root/mcwrapper/mod.py
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-10-30 22:44:34 +0100
committerKarel Kočí <cynerd@email.cz>2016-10-30 22:44:34 +0100
commit35d2ae9a115a17df2267cf0673d59419f4fd2a2f (patch)
treedaa7484484806238ce98d6d1bed21122b8cd7b5e /mcwrapper/mod.py
parentd7b7cdf04c4a04eae1a44b53a8091fd1cda9d90f (diff)
downloadmcserver-wrapper-35d2ae9a115a17df2267cf0673d59419f4fd2a2f.tar.gz
mcserver-wrapper-35d2ae9a115a17df2267cf0673d59419f4fd2a2f.tar.bz2
mcserver-wrapper-35d2ae9a115a17df2267cf0673d59419f4fd2a2f.zip
Split status and players to separate classes
Diffstat (limited to 'mcwrapper/mod.py')
-rw-r--r--mcwrapper/mod.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcwrapper/mod.py b/mcwrapper/mod.py
index 73200f1..bb580e8 100644
--- a/mcwrapper/mod.py
+++ b/mcwrapper/mod.py
@@ -12,6 +12,9 @@ class MoD:
self.file = file
alarm.set("mod-time", period, self.__handler__, repeat=True)
+ def clean(self):
+ alarm.unset("mod-time")
+
def __handler__(self):
lines = []
try: