System panel log for maximum connected count.
This commit is contained in:
@ -24,6 +24,7 @@ import java.util.TimerTask;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.jar.Attributes;
|
||||
import java.util.jar.JarFile;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
@ -39,6 +40,8 @@ import org.l2jmobius.gameserver.util.Locator;
|
||||
*/
|
||||
public class SystemPanel extends JPanel
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(SystemPanel.class.getName());
|
||||
|
||||
private static final long START_TIME = System.currentTimeMillis();
|
||||
|
||||
public SystemPanel()
|
||||
@ -125,6 +128,10 @@ public class SystemPanel extends JPanel
|
||||
if (World.MAX_CONNECTED_COUNT < playerCount)
|
||||
{
|
||||
World.MAX_CONNECTED_COUNT = playerCount;
|
||||
if (playerCount > 1)
|
||||
{
|
||||
LOGGER.info("New maximum connected count of " + playerCount + "!");
|
||||
}
|
||||
}
|
||||
lblConnected.setText("Connected: " + playerCount);
|
||||
lblMaxConnected.setText("Max connected: " + World.MAX_CONNECTED_COUNT);
|
||||
|
Reference in New Issue
Block a user