summaryrefslogtreecommitdiff
path: root/helpers.py
diff options
context:
space:
mode:
authorDico200 <dico.karssiens@gmail.com>2015-03-15 04:03:40 +0100
committerDico200 <dico.karssiens@gmail.com>2015-03-15 04:03:40 +0100
commit5ef17713a478678261b1a317fb0a6d94fcc189c2 (patch)
treea1f5df47d0baee5cd8c7f7abf2fa3fc5f6571111 /helpers.py
parent96b4cb2e3fe7de023d0c22f24c1824566a55cf85 (diff)
Change runas() in helpers to use player.chat
Diffstat (limited to 'helpers.py')
-rw-r--r--helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers.py b/helpers.py
index 6a962f2..e72b19d 100644
--- a/helpers.py
+++ b/helpers.py
@@ -112,7 +112,7 @@ def runas(player, cmd):
run a command as player
the cmd should no be prefixed with a /
"""
- server.dispatchCommand(player, cmd)
+ player.chat("/" + cmd)
def is_player(obj):