Faction chat system.

This commit is contained in:
mobius
2015-01-14 11:51:44 +00:00
parent 89f53b2c3d
commit 5395d59c41
11 changed files with 234 additions and 11 deletions

View File

@@ -84,6 +84,11 @@ public class ChatTell implements IChatHandler
activeChar.sendMessage("Player is in offline mode.");
return;
}
if (Config.FACTION_SYSTEM_ENABLED && Config.FACTION_SPECIFIC_CHAT && ((activeChar.isGood() && receiver.isEvil()) || (activeChar.isEvil() && receiver.isGood())))
{
activeChar.sendMessage("Player belongs to the opposing faction.");
return;
}
if (!BlockList.isBlocked(receiver, activeChar))
{
// Allow reciever to send PMs to this char, which is in silence mode.