Moved again previous commit variables in World.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user