This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
AdBlock Extension Detected!
Our website is made possible by displaying online advertisements to our members.
Please disable AdBlock browser extension first, to be able to use our community.
Question
aonniemnoi
btw i want to change this msg announce for all player to color msg. something like RED color
like type a SHOUT...
Thank you for some 1 can help me
// announce pvp/pk
if (Config.ANNOUNCE_PK_PVP && !pk.isGM())
{
String msg = "";
if (getPvpFlag() == 0)
{
msg = Config.ANNOUNCE_PK_MSG.replace("$killer", pk.getName()).replace("$target", getName());
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1);
sm.addString(msg);
Announcements.getInstance().announceToAll(sm);
}
else
{
Announcements.getInstance().announceToAll(msg);
}
}
else if (getPvpFlag() != 0)
{
msg = Config.ANNOUNCE_PVP_MSG.replace("$killer", pk.getName()).replace("$target", getName());
if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE)
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1);
sm.addString(msg);
Announcements.getInstance().announceToAll(sm);
}
else
{
Announcements.getInstance().announceToAll(msg);
}
}
}
}
12 answers to this question
Recommended Posts