From cc77ca6c80e15a57221dee0631a818edc1a0ea7a Mon Sep 17 00:00:00 2001 From: Austin Shapiro Date: Thu, 12 Oct 2023 13:49:27 -0700 Subject: [PATCH] fix velocity fields not being populated --- .../plugin/velocity/MinecraftAuthVelocity.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/proxy/velocity/src/main/java/me/minecraftauth/plugin/velocity/MinecraftAuthVelocity.java b/proxy/velocity/src/main/java/me/minecraftauth/plugin/velocity/MinecraftAuthVelocity.java index 7a6d408..6d6046b 100644 --- a/proxy/velocity/src/main/java/me/minecraftauth/plugin/velocity/MinecraftAuthVelocity.java +++ b/proxy/velocity/src/main/java/me/minecraftauth/plugin/velocity/MinecraftAuthVelocity.java @@ -44,9 +44,16 @@ public class MinecraftAuthVelocity { @Getter private static MinecraftAuthVelocity instance; @Getter private AuthenticationService service; - @Inject private Logger logger; - @Inject private ProxyServer server; - @DataDirectory Path dataDirectory; + @Inject private final ProxyServer server; + @Inject private final Logger logger; + private final Path dataDirectory; + + @Inject + public MinecraftAuthVelocity(ProxyServer server, Logger logger, @DataDirectory Path dataDirectory) { + this.server = server; + this.logger = logger; + this.dataDirectory = dataDirectory; + } @Subscribe public void onProxyInitialization(ProxyInitializeEvent event) {