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:
cnr 2017-03-03 08:10:53 -06:00
parent d072fc3c21
commit 06a71946a0
3 changed files with 10 additions and 4 deletions

View File

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

View File

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

View File

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