Action improvements.
This commit is contained in:
@@ -27,11 +27,11 @@ import com.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
public class OnPlayerChat implements IBaseEvent
|
||||
{
|
||||
private final L2PcInstance _activeChar;
|
||||
private final L2PcInstance _target;
|
||||
private final String _target;
|
||||
private final String _text;
|
||||
private final ChatType _type;
|
||||
|
||||
public OnPlayerChat(L2PcInstance activeChar, L2PcInstance target, String text, ChatType type)
|
||||
public OnPlayerChat(L2PcInstance activeChar, String target, String text, ChatType type)
|
||||
{
|
||||
_activeChar = activeChar;
|
||||
_target = target;
|
||||
@@ -44,7 +44,7 @@ public class OnPlayerChat implements IBaseEvent
|
||||
return _activeChar;
|
||||
}
|
||||
|
||||
public L2PcInstance getTarget()
|
||||
public String getTarget()
|
||||
{
|
||||
return _target;
|
||||
}
|
||||
|
@@ -23,7 +23,6 @@ import com.l2jmobius.commons.network.PacketReader;
|
||||
import com.l2jmobius.gameserver.enums.ChatType;
|
||||
import com.l2jmobius.gameserver.handler.ChatHandler;
|
||||
import com.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.ceremonyofchaos.CeremonyOfChaosEvent;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
@@ -209,7 +208,7 @@ public final class Say2 implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, L2World.getInstance().getPlayer(_target), _text, chatType), activeChar, ChatFilterReturn.class);
|
||||
final ChatFilterReturn filter = EventDispatcher.getInstance().notifyEvent(new OnPlayerChat(activeChar, _target, _text, chatType), activeChar, ChatFilterReturn.class);
|
||||
if (filter != null)
|
||||
{
|
||||
_text = filter.getFilteredText();
|
||||
|
Reference in New Issue
Block a user