fix commandmanager not being loaded before queuemain (velocity)

This commit is contained in:
ajgeiss0702
2021-09-26 11:02:30 -07:00
parent 5c264df49d
commit bbaae01272
@@ -71,6 +71,9 @@ public class VelocityQueue implements Implementation {
@Subscribe @Subscribe
public void onProxyInit(ProxyInitializeEvent e) { public void onProxyInit(ProxyInitializeEvent e) {
commandManager = proxyServer.getCommandManager();
main = new QueueMain( main = new QueueMain(
this, this,
logger, logger,
@@ -85,8 +88,6 @@ public class VelocityQueue implements Implementation {
new ManageCommand(main) new ManageCommand(main)
); );
commandManager = proxyServer.getCommandManager();
proxyServer.getChannelRegistrar().register(MinecraftChannelIdentifier.create("ajqueue", "tospigot")); proxyServer.getChannelRegistrar().register(MinecraftChannelIdentifier.create("ajqueue", "tospigot"));
proxyServer.getChannelRegistrar().register(MinecraftChannelIdentifier.from("ajqueue:toproxy")); proxyServer.getChannelRegistrar().register(MinecraftChannelIdentifier.from("ajqueue:toproxy"));