Renamed TELL and NPC_TELL chat types, also fixed minor typo in L2PcInstance.
Source L2J Ertheia branch:48e9f32ede
9e6d13a293
This commit is contained in:
@ -136,9 +136,9 @@ import handlers.bypasshandlers.TerritoryStatus;
|
||||
import handlers.bypasshandlers.TutorialClose;
|
||||
import handlers.bypasshandlers.VoiceCommand;
|
||||
import handlers.bypasshandlers.Wear;
|
||||
import handlers.chathandlers.ChatAll;
|
||||
import handlers.chathandlers.ChatAlliance;
|
||||
import handlers.chathandlers.ChatClan;
|
||||
import handlers.chathandlers.ChatGeneral;
|
||||
import handlers.chathandlers.ChatHeroVoice;
|
||||
import handlers.chathandlers.ChatParty;
|
||||
import handlers.chathandlers.ChatPartyMatchRoom;
|
||||
@ -146,8 +146,8 @@ import handlers.chathandlers.ChatPartyRoomAll;
|
||||
import handlers.chathandlers.ChatPartyRoomCommander;
|
||||
import handlers.chathandlers.ChatPetition;
|
||||
import handlers.chathandlers.ChatShout;
|
||||
import handlers.chathandlers.ChatTell;
|
||||
import handlers.chathandlers.ChatTrade;
|
||||
import handlers.chathandlers.ChatWhisper;
|
||||
import handlers.chathandlers.ChatWorld;
|
||||
import handlers.communityboard.ClanBoard;
|
||||
import handlers.communityboard.FavoriteBoard;
|
||||
@ -438,7 +438,7 @@ public class MasterHandler
|
||||
},
|
||||
{
|
||||
// Chat Handlers
|
||||
ChatAll.class,
|
||||
ChatGeneral.class,
|
||||
ChatAlliance.class,
|
||||
ChatClan.class,
|
||||
ChatHeroVoice.class,
|
||||
@ -448,7 +448,7 @@ public class MasterHandler
|
||||
ChatPartyRoomCommander.class,
|
||||
ChatPetition.class,
|
||||
ChatShout.class,
|
||||
ChatTell.class,
|
||||
ChatWhisper.class,
|
||||
ChatTrade.class,
|
||||
ChatWorld.class,
|
||||
},
|
||||
|
@ -309,7 +309,7 @@ public class AdminAdmin implements IAdminCommandHandler
|
||||
sb.append(" ");
|
||||
}
|
||||
|
||||
final CreatureSay cs = new CreatureSay(activeChar, ChatType.GLOBAL, sb.toString());
|
||||
final CreatureSay cs = new CreatureSay(activeChar, ChatType.WORLD, sb.toString());
|
||||
L2World.getInstance().getPlayers().stream().filter(activeChar::isNotBlocked).forEach(cs::sendTo);
|
||||
break;
|
||||
}
|
||||
|
@ -37,9 +37,9 @@ import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
|
||||
* General Chat Handler.
|
||||
* @author durgus
|
||||
*/
|
||||
public final class ChatAll implements IChatHandler
|
||||
public final class ChatGeneral implements IChatHandler
|
||||
{
|
||||
private static Logger _log = Logger.getLogger(ChatAll.class.getName());
|
||||
private static Logger _log = Logger.getLogger(ChatGeneral.class.getName());
|
||||
|
||||
private static final ChatType[] CHAT_TYPES =
|
||||
{
|
@ -33,11 +33,11 @@ import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
|
||||
* Tell chat handler.
|
||||
* @author durgus
|
||||
*/
|
||||
public final class ChatTell implements IChatHandler
|
||||
public final class ChatWhisper implements IChatHandler
|
||||
{
|
||||
private static final ChatType[] CHAT_TYPES =
|
||||
{
|
||||
ChatType.TELL,
|
||||
ChatType.WHISPER
|
||||
};
|
||||
|
||||
@Override
|
@ -43,7 +43,7 @@ public final class ChatWorld implements IChatHandler
|
||||
|
||||
private static final ChatType[] CHAT_TYPES =
|
||||
{
|
||||
ChatType.GLOBAL,
|
||||
ChatType.WORLD,
|
||||
};
|
||||
|
||||
@Override
|
||||
|
@ -67,7 +67,7 @@ public class ChatsHandler implements ITelnetHandler
|
||||
String name = st.nextToken();
|
||||
String message = val.substring(name.length() + 1);
|
||||
L2PcInstance reciever = L2World.getInstance().getPlayer(name);
|
||||
CreatureSay cs = new CreatureSay(0, ChatType.TELL, "Telnet Priv", message);
|
||||
CreatureSay cs = new CreatureSay(0, ChatType.WHISPER, "Telnet Priv", message);
|
||||
if (reciever != null)
|
||||
{
|
||||
reciever.sendPacket(cs);
|
||||
|
Reference in New Issue
Block a user