Send normal message when builder config is disabled.

This commit is contained in:
MobiusDev
2018-05-04 16:34:02 +00:00
parent 475bb35bcc
commit b6870bbede
8 changed files with 72 additions and 8 deletions

View File

@ -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);
}
}
/**