summaryrefslogtreecommitdiff
path: root/mentio.py
diff options
context:
space:
mode:
authorLouis Vogt <l.uisv.gt@icloud.com>2014-06-20 22:04:39 +0200
committerLouis Vogt <l.uisv.gt@icloud.com>2014-06-20 22:04:39 +0200
commit6df5cab599fb8d053bc1af9bc6c929953efc2463 (patch)
tree45bd92fac87974f1db4dada49caddc676623321d /mentio.py
parentf23a6ee05a82da56ceed9eddca5a48c580f2cd50 (diff)
Added mention module
Diffstat (limited to 'mentio.py')
-rw-r--r--mentio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mentio.py b/mentio.py
index 10cdb4b..7010795 100644
--- a/mentio.py
+++ b/mentio.py
@@ -12,7 +12,7 @@ def onChat(event):
messagesList = messages.split(" ")
for message in messagesList:
for recipient in server.getOnlinePlayers().tolist():
- if message[:3].lower() in recipient.getName().lower() and len(message) > 2 and len(message) <= len(recipient.getName()):
+ if message[:3].lower() in recipient.getName().lower() and len(message) > 2:
msg(recipient, "&6" + symbol + " &f%s &6mentioned you" % sender.getDisplayName())
# Couldn't figure out how to done this
# recipient.playSound(recipient.getLocation(), Sound.CHICKEN_EGG_POP, 1, 1)