diff options
author | Louis Vogt <l.uisv.gt@icloud.com> | 2014-07-26 14:19:31 +0200 |
---|---|---|
committer | Louis Vogt <l.uisv.gt@icloud.com> | 2014-07-26 14:19:31 +0200 |
commit | 2a1c2f391973d9196835b482655a3947462cb328 (patch) | |
tree | 6de06bf24415e102f84c0e34c630a8c2d0cecdc2 /mentio.py | |
parent | 304da99ca4e225053141c40d6196dd561481f79e (diff) |
Wrong receiver; new plop; no simplejson; still 1 bug
Diffstat (limited to 'mentio.py')
-rw-r--r-- | mentio.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -import simplejson as json +import json from helpers import * from re import compile as reg_compile from traceback import format_exc as print_traceback @@ -22,9 +22,9 @@ def onChat(event): sender = event.getPlayer() words = event.getMessage().split(" ") recipients = event.getRecipients() - listeners = mentions[sender.getUniqueId()] for recipient in list(recipients): + listeners = mentions[str(recipient.getUniqueId())] rec_words = words[:] # copy for i in range(len(rec_words)): word = rec_words[i] @@ -49,7 +49,7 @@ def onChat(event): pass message = " ".join([sender.getDisplayName(), arrow] + rec_words) msg(recipient, message, usecolor = False) - recipient.playSound(recipient.getLocation(), "mob.chicken.plop", 1, 0) + recipient.playSound(recipient.getLocation(), "liquid.lavapop", 1, 2) except: error("Failed to handle PlayerChatEvent:") error(print_traceback()) |