Skip to content
Snippets Groups Projects
Commit 2addc4ab authored by Nik's avatar Nik
Browse files

BETA: DP part for [L4931]

parent a56ddb5b
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ public class ChatTell implements IChatHandler ...@@ -63,7 +63,7 @@ public class ChatTell implements IChatHandler
receiver = L2World.getInstance().getPlayer(target); receiver = L2World.getInstance().getPlayer(target);
if (receiver != null && !receiver.isSilenceMode()) if (receiver != null && !receiver.isSilenceMode(activeChar.getObjectId()))
{ {
if (Config.JAIL_DISABLE_CHAT && receiver.isInJail() && !activeChar.isGM()) if (Config.JAIL_DISABLE_CHAT && receiver.isInJail() && !activeChar.isGM())
{ {
...@@ -82,6 +82,10 @@ public class ChatTell implements IChatHandler ...@@ -82,6 +82,10 @@ public class ChatTell implements IChatHandler
} }
if (!BlockList.isBlocked(receiver, activeChar)) if (!BlockList.isBlocked(receiver, activeChar))
{ {
// Allow reciever to send PMs to this char, which is in silence mode.
if (Config.SILENCE_MODE_EXCLUDE && activeChar.isSilenceMode())
activeChar.addSilenceModeExcluded(receiver.getObjectId());
receiver.sendPacket(cs); receiver.sendPacket(cs);
activeChar.sendPacket(new CreatureSay(activeChar.getObjectId(), type, "->" + receiver.getName(), text)); activeChar.sendPacket(new CreatureSay(activeChar.getObjectId(), type, "->" + receiver.getName(), text));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment