All pastes #388143 Raw Edit

Anonymous

public java v1 · immutable
·published 2007-03-09 21:25 UTC
rendered paste body
Index: /L2Z_GSC5/src/main/java/net/sf/l2j/gameserver/Shutdown.java===================================================================--- /L2Z_GSC5/src/main/java/net/sf/l2j/gameserver/Shutdown.java (revision 2)+++ /L2Z_GSC5/src/main/java/net/sf/l2j/gameserver/Shutdown.java (revision 27)@@ -28,4 +28,5 @@ import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.serverpackets.LeaveWorld;+import net.sf.l2j.gameserver.serverpackets.SystemMessage;  import org.apache.commons.logging.Log;@@ -64,4 +65,9 @@     public void startTelnetShutdown(String IP, int seconds, boolean restart)     {+        SystemMessage sm = new SystemMessage(1);+        sm.addNumber(seconds);        +        for (L2PcInstance player : L2World.getInstance().getAllPlayers()) {+            player.sendPacket(sm);+        }         Announcements _an = Announcements.getInstance();         _log.warn("IP: " + IP + " issued shutdown command. " + _modeText[shutdownMode] + " in "+seconds+ " seconds!");@@ -234,4 +240,10 @@      */     public void startShutdown(L2PcInstance activeChar, int seconds, boolean restart) {+        SystemMessage sm = new SystemMessage(1);+        sm.addNumber(seconds);        +        for (L2PcInstance player : L2World.getInstance().getAllPlayers()) {+            player.sendPacket(sm);+        }+        sm = null;         Announcements _an = Announcements.getInstance();         _log.warn("GM: "+activeChar.getName()+"("+activeChar.getObjectId()+") issued shutdown command. " + _modeText[shutdownMode] + " in "+seconds+ " seconds!");