diff --git a/bukkit/pom.xml b/bukkit/pom.xml index b95c2372..3b70e920 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -193,7 +193,7 @@ com.comphenix.protocol ProtocolLib - 5.0.0-SNAPSHOT + 5.0.0 provided diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/BungeeManager.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/BungeeManager.java index 53a7c5df..28ebea3d 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/BungeeManager.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/BungeeManager.java @@ -41,11 +41,7 @@ import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.nio.file.Files; import java.nio.file.Path; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.Set; -import java.util.UUID; +import java.util.*; import java.util.stream.Stream; import static com.github.games647.fastlogin.core.message.ChangePremiumMessage.CHANGE_CHANNEL; @@ -93,6 +89,10 @@ public class BungeeManager { if (enabled) { proxyIds = loadBungeeCordIds(); + if (proxyIds.isEmpty()) { + plugin.getLog().info("No valid IDs found. Minecraft proxy support cannot work in the current state"); + } + registerPluginChannels(); plugin.getLog().info("Found enabled proxy configuration"); plugin.getLog().info("Remember to follow the proxy guide to complete your setup");