Moved again previous commit variables in World.

This commit is contained in:
MobiusDevelopment
2020-04-01 11:56:04 +00:00
parent f2a7531d24
commit 362fc6d6cb
129 changed files with 256 additions and 295 deletions

View File

@@ -59,9 +59,6 @@ public class GameServer extends Thread
{
static Logger _log = Logger.getLogger(GameServer.class.getName());
public static volatile int MAX_CONNECTED_COUNT = 0;
public static volatile int OFFLINE_TRADE_COUNT = 0;
private ServerSocket _serverSocket;
private final ItemTable _itemTable;

View File

@@ -29,6 +29,9 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
public class World
{
public static volatile int MAX_CONNECTED_COUNT = 0;
public static volatile int OFFLINE_TRADE_COUNT = 0;
public static final int TILE_SIZE = 32768;
public static final int TILE_X_MIN = 11;
public static final int TILE_Y_MIN = 10;

View File

@@ -117,12 +117,12 @@ public class SystemPanel extends JPanel
public void run()
{
final int playerCount = World.getInstance().getAllPlayers().size();
if (GameServer.MAX_CONNECTED_COUNT < playerCount)
if (World.MAX_CONNECTED_COUNT < playerCount)
{
GameServer.MAX_CONNECTED_COUNT = playerCount;
World.MAX_CONNECTED_COUNT = playerCount;
}
lblConnected.setText("Connected: " + playerCount);
lblMaxConnected.setText("Max connected: " + GameServer.MAX_CONNECTED_COUNT);
lblMaxConnected.setText("Max connected: " + World.MAX_CONNECTED_COUNT);
lblElapsedTime.setText("Elapsed: " + getDurationBreakdown(System.currentTimeMillis() - START_TIME));
}
}, 1000, 1000);