summaryrefslogtreecommitdiff
path: root/imout.py
diff options
context:
space:
mode:
authorDico200 <dico.karssiens@gmail.com>2015-04-13 18:16:40 +0200
committerDico200 <dico.karssiens@gmail.com>2015-04-13 18:16:40 +0200
commit2c063d638f2862472d0bf6887b087c97c8b668a2 (patch)
tree3f359b553201a37301a57facd7bebd7dd21f809a /imout.py
parent211fb082653b8ce5516b7c0af923fa5fa9070111 (diff)
Tweaks in imout, primarily making player vanish
Diffstat (limited to 'imout.py')
-rw-r--r--imout.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/imout.py b/imout.py
index e7ab99d..bb10204 100644
--- a/imout.py
+++ b/imout.py
@@ -6,12 +6,16 @@ imout_toggle_list = []
@hook.command("imout")
def on_imout_command(sender, command, label, args):
+ if not is_player(sender):
+ msg(sender, "&cThis command can't be run from the console")
+ return True
if sender.hasPermission("utils.imout"):
name = sender.getName()
symbol = "&a&l+"
if name in imout_toggle_list:
msg(sender, "&eWelcome back! You are no longer hidden")
msg(sender, "&6We disabled /act for you!")
+ runas(sender, "vanish off")
if name in imout_toggle_list:
imout_toggle_list.remove(name)
if name in ac_toggle_list:
@@ -20,8 +24,10 @@ def on_imout_command(sender, command, label, args):
symbol = "&c&l-"
msg(sender, "&eYou just left... Or didn't you?")
imout_toggle_list.append(name)
+ runas(sender, "vanish on")
if name not in ac_toggle_list:
msg(sender, "&6We enabled /act for you!")
ac_toggle_list.append(name)
broadcast(None, "%s &7%s" % (symbol, name))
+ return True