Publish server status earlier during startup
Servers are allowed ten seconds to publish their status on startup by ServerMonitor. NpcManager can consume most or all of that allotted time on EU, so we need to initialize ServerStatusManager first.
This commit is contained in:
parent
d072fc3c21
commit
06a71946a0
@ -104,6 +104,9 @@ public class ClansHub extends JavaPlugin
|
||||
|
||||
ServerConfiguration serverConfiguration = new ServerConfiguration(this, clientManager);
|
||||
|
||||
// Publish our server status now, to give us more time to start up
|
||||
ServerStatusManager serverStatusManager = new ServerStatusManager(this, clientManager, new LagMeter(this, clientManager));
|
||||
|
||||
//Other Modules
|
||||
PacketHandler packetHandler = require(PacketHandler.class);
|
||||
DisguiseManager disguiseManager = require(DisguiseManager.class);
|
||||
@ -120,7 +123,6 @@ public class ClansHub extends JavaPlugin
|
||||
PollManager pollManager = new PollManager(this, clientManager, donationManager);
|
||||
|
||||
//Main Modules
|
||||
ServerStatusManager serverStatusManager = new ServerStatusManager(this, clientManager, new LagMeter(this, clientManager));
|
||||
new TitanGiveawayManager(this, clientManager, serverStatusManager);
|
||||
|
||||
Portal portal = new Portal();
|
||||
|
@ -122,6 +122,9 @@ public class Hub extends JavaPlugin implements IRelation
|
||||
|
||||
ServerConfiguration serverConfiguration = new ServerConfiguration(this, clientManager);
|
||||
|
||||
// Publish our server status now, to give us more time to start up
|
||||
ServerStatusManager serverStatusManager = new ServerStatusManager(this, clientManager, new LagMeter(this, clientManager));
|
||||
|
||||
//Other Modules
|
||||
PacketHandler packetHandler = require(PacketHandler.class);
|
||||
DisguiseManager disguiseManager = require(DisguiseManager.class);
|
||||
@ -142,7 +145,6 @@ public class Hub extends JavaPlugin implements IRelation
|
||||
ProjectileManager throwManager = new ProjectileManager(this);
|
||||
|
||||
//Main Modules
|
||||
ServerStatusManager serverStatusManager = new ServerStatusManager(this, clientManager, new LagMeter(this, clientManager));
|
||||
new TitanGiveawayManager(this, clientManager, serverStatusManager);
|
||||
|
||||
Portal portal = new Portal();
|
||||
|
@ -118,7 +118,10 @@ public class Arcade extends JavaPlugin
|
||||
Recharge.Initialize(this);
|
||||
VisibilityManager.Initialize(this);
|
||||
Give.Initialize(this);
|
||||
|
||||
|
||||
// Publish our server status now, to give us more time to start up
|
||||
ServerStatusManager serverStatusManager = new ServerStatusManager(this, _clientManager, new LagMeter(this, _clientManager));
|
||||
|
||||
//Velocity Fix
|
||||
new VelocityFix(this);
|
||||
|
||||
@ -134,7 +137,6 @@ public class Arcade extends JavaPlugin
|
||||
incognito.setPreferencesManager(preferenceManager);
|
||||
|
||||
Creature creature = new Creature(this);
|
||||
ServerStatusManager serverStatusManager = new ServerStatusManager(this, _clientManager, new LagMeter(this, _clientManager));
|
||||
LeaderboardManager leaderboardManager = new LeaderboardManager(this, _clientManager);
|
||||
Teleport teleport = new Teleport(this, _clientManager);
|
||||
Portal portal = new Portal();
|
||||
|
Loading…
Reference in New Issue
Block a user