Jump to content
Aplicatiile pentru functia de "Helper" pentru serverul de Minecraft sunt deschise !

[Share] Java Anti-Phx Announce


Guest Alex

Recommended Posts

As u read in my other posts phx can be used on announcements only in l2j free packs
To fix it fallow this sh1t xD

Add this one after line 80

// If no or wrong channel is used - return
if (_type
== SystemChatChannelId.Chat_None || _type ==
SystemChatChannelId.Chat_Announce || _type ==
SystemChatChannelId.Chat_Critical_Announce
|| _type == SystemChatChannelId.Chat_System || _type == SystemChatChannelId.Chat_Custom
|| (_type == SystemChatChannelId.Chat_GM_Pet && !activeChar.isGM()))
{
_log.warn("[Anti-Phx] Illegal chat channel was used.");
return;
}

if (activeChar == null)
{
_log.warn("[say2.java] Active Character is null.");
return;
}

And nobish way, add it after after:


@Override
protected void runImpl()
{
L2PcInstance activeChar = getClient().getActiveChar();

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...