From 74edac9642c1318ff038da0ae5dc1d543d42624e Mon Sep 17 00:00:00 2001 From: 4drian3d <68704415+4drian3d@users.noreply.github.com> Date: Thu, 9 Jun 2022 12:08:55 -0500 Subject: [PATCH] Fixed BungeeGuard support (#739) --- .../velocitypowered/proxy/config/VelocityConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java b/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java index 25cf4dc08..b3066e1f4 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java @@ -514,8 +514,8 @@ public class VelocityConfiguration implements ProxyConfig { // Throw an exception if the forwarding-secret file is empty and the proxy is using a // forwarding mode that requires it. if (forwardingSecret.length == 0 - && forwardingMode == PlayerInfoForwarding.MODERN - || forwardingMode == PlayerInfoForwarding.BUNGEEGUARD) { + && (forwardingMode == PlayerInfoForwarding.MODERN + || forwardingMode == PlayerInfoForwarding.BUNGEEGUARD)) { throw new RuntimeException("The forwarding-secret file must not be empty."); }