From b917464f2752feed0933fa1fda75298ba93e8953 Mon Sep 17 00:00:00 2001 From: azujelly Date: Sat, 31 Aug 2024 16:39:10 -0400 Subject: [PATCH] fix: also set disable v1 protocol property --- .../nuvotifier/standalone/config/server/BackendServer.java | 2 +- .../standalone/inject/server/VotifierServerModule.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/config/server/BackendServer.java b/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/config/server/BackendServer.java index 90591ab..c6874af 100644 --- a/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/config/server/BackendServer.java +++ b/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/config/server/BackendServer.java @@ -9,7 +9,7 @@ public class BackendServer { public BackendServer() { this.address = "127.0.0.1"; this.port = 25565; - this.token = null; + this.token = "exampleToken"; } public BackendServer(String address, int port, String token) { diff --git a/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/server/VotifierServerModule.java b/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/server/VotifierServerModule.java index 538eb44..6a6b5b6 100644 --- a/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/server/VotifierServerModule.java +++ b/standalone/src/main/java/com/vexsoftware/nuvotifier/standalone/inject/server/VotifierServerModule.java @@ -46,6 +46,7 @@ public StandaloneVotifierPlugin provideStandaloneVotifierPlugin( VotifierServerBuilder builder = new VotifierServerBuilder() .bind(address) .v1KeyFolder(rsaFolder) + .disableV1Protocol(config.isDisableV1Protocol()) .debug(config.isDebug()) .backendServers(config.getBackendServers());