From bbaae01272a18ff52898e74e1899ab63e414fd64 Mon Sep 17 00:00:00 2001 From: ajgeiss0702 Date: Sun, 26 Sep 2021 11:02:30 -0700 Subject: [PATCH] fix commandmanager not being loaded before queuemain (velocity) --- .../us/ajg0702/queue/platforms/velocity/VelocityQueue.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java b/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java index 9f6ce7d..55717c6 100644 --- a/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java +++ b/platforms/velocity/src/main/java/us/ajg0702/queue/platforms/velocity/VelocityQueue.java @@ -71,6 +71,9 @@ public class VelocityQueue implements Implementation { @Subscribe public void onProxyInit(ProxyInitializeEvent e) { + + commandManager = proxyServer.getCommandManager(); + main = new QueueMain( this, logger, @@ -85,8 +88,6 @@ public class VelocityQueue implements Implementation { new ManageCommand(main) ); - commandManager = proxyServer.getCommandManager(); - proxyServer.getChannelRegistrar().register(MinecraftChannelIdentifier.create("ajqueue", "tospigot")); proxyServer.getChannelRegistrar().register(MinecraftChannelIdentifier.from("ajqueue:toproxy"));