Anonymous
public text v1 · immutable else if (type == SHOUT || type == TRADE)
{
Properties serverSettings = new Properties();
String globalchat = serverSettings.getProperty("GlobalChat");
if (globalchat = null) { globalchat = "off" }
if (globalchat.equalsIgnoreCase("off"))
{
}
else if (globalchat.equalsIgnoreCase("gm"))
{
if (activeChar.isGM())
{
L2PcInstance[] players = L2World.getInstance().getAllPlayers();
for (int i = 0; i < players.length; i++)
{
players[i].sendPacket(cs);
}
}
}
else
{
L2PcInstance[] players = L2World.getInstance().getAllPlayers();
for (int i = 0; i < players.length; i++)
{
players[i].sendPacket(cs);
}
}
}