Send normal message when builder config is disabled.
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.util;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.enums.ChatType;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
@ -38,7 +39,14 @@ public final class BuilderUtil
|
||||
*/
|
||||
public static void sendSysMessage(L2PcInstance player, String message)
|
||||
{
|
||||
player.sendPacket(new CreatureSay(0, ChatType.GENERAL, "SYS", message));
|
||||
if (Config.GM_STARTUP_BUILDER_HIDE)
|
||||
{
|
||||
player.sendPacket(new CreatureSay(0, ChatType.GENERAL, "SYS", message));
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user