Fixed easy workaround for CAPS filter.

This commit is contained in:
ryanhamshire committed 2015-06-12 19:12:03 -07:00
1 parent 4a5d0ae3fa
commit 4aa94fabb4
1 file changed
+1 -1
@@ -232,7 +232,7 @@ class PlayerEventHandler implements Listener
if(message.length() > 4 && this.stringsAreSimilar(message.toUpperCase(), message))
{
//exception for strings containing forward slash to avoid changing a case-sensitive URL
if(event instanceof AsyncPlayerChatEvent && !message.contains("/"))
if(event instanceof AsyncPlayerChatEvent)
{
((AsyncPlayerChatEvent)event).setMessage(message.toLowerCase());
}