summaryrefslogtreecommitdiff
path: root/mentio.py
diff options
context:
space:
mode:
authorLouis Vogt <l.uisv.gt@icloud.com>2014-07-26 14:19:31 +0200
committerLouis Vogt <l.uisv.gt@icloud.com>2014-07-26 14:19:31 +0200
commit2a1c2f391973d9196835b482655a3947462cb328 (patch)
tree6de06bf24415e102f84c0e34c630a8c2d0cecdc2 /mentio.py
parent304da99ca4e225053141c40d6196dd561481f79e (diff)
Wrong receiver; new plop; no simplejson; still 1 bug
Diffstat (limited to 'mentio.py')
-rw-r--r--mentio.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mentio.py b/mentio.py
index c2f985d..f557a5f 100644
--- a/mentio.py
+++ b/mentio.py
@@ -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())