System panel log for maximum connected count.

This commit is contained in:
MobiusDevelopment
2020-12-19 22:34:23 +00:00
parent 66ea8f6540
commit 594bcbc7c4
22 changed files with 154 additions and 0 deletions

View File

@ -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);