Add in optional relcolor parsing. Since it rarely may break other advanced chat plugins it can be opted out from in the mconf. Enabled by default.

This commit is contained in:
Olof Larsson
2013-08-21 09:51:43 +02:00
parent faa61345df
commit a71b3a19f3
3 changed files with 67 additions and 2 deletions

View File

@@ -23,10 +23,11 @@ public class ChatTagRelcolor extends ChatTagAbstract
@Override
public String getReplacement(CommandSender sender, CommandSender recipient)
{
if (recipient == null) return "";
// Check disabled
if (UConf.isDisabled(sender)) return "";
// Opt out if no recipient
if (recipient == null) return null;
// Get entities
UPlayer usender = UPlayer.get(sender);