summaryrefslogtreecommitdiff
path: root/imout.py
diff options
context:
space:
mode:
authorLouis Vogt <l.uisv.gt@icloud.com>2014-12-12 20:28:23 +0100
committerLouis Vogt <l.uisv.gt@icloud.com>2014-12-12 20:28:23 +0100
commit004140b2dffb87a0b6414aa68dd51e95529985df (patch)
tree7c9ad96d42b9c169a703ec16711f831bccc939fb /imout.py
parent6f16ed15ea16fdf82276beed3e3686b9e5d262f0 (diff)
Added fake leave / join module
Diffstat (limited to 'imout.py')
-rw-r--r--imout.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/imout.py b/imout.py
new file mode 100644
index 0000000..65ff76d
--- /dev/null
+++ b/imout.py
@@ -0,0 +1,19 @@
+import thread
+from helpers import *
+
+imout_toggle_list = []
+
+@hook.command("imout")
+def on_imout_command(sender, args):
+ if sender.hasPermission("utils.imout"):
+ name = sender.getName()
+ symbol = "&a+"
+ if name in imout_toggle_list:
+ msg(sender, "&eWelcome back! You are no longer hidden")
+ imout_toggle_list.remove(name)
+ else:
+ symbol = "&c-"
+ msg(sender, "&eYou just left... Or didn't you?")
+ imout_toggle_list.append(name)
+
+ broadcast(None, "&l%s &7%s" % (symbol, name))