All pastes #4035 Raw Edit

Anonymous

public text v1 · immutable
#4035 ·published 2005-01-11 08:05 UTC
rendered paste body
                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);
                                }
                        }
                }