Print an extra warning if the id list is empty.

This commit is contained in:
games647
2023-05-22 10:35:50 +02:00
parent dd0dd15200
commit dc4510aba3
2 changed files with 6 additions and 6 deletions

View File

@ -193,7 +193,7 @@
<dependency> <dependency>
<groupId>com.comphenix.protocol</groupId> <groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId> <artifactId>ProtocolLib</artifactId>
<version>5.0.0-SNAPSHOT</version> <version>5.0.0</version>
<scope>provided</scope> <scope>provided</scope>
<exclusions> <exclusions>
<exclusion> <exclusion>

View File

@ -41,11 +41,7 @@ import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.util.Collection; import java.util.*;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Stream; import java.util.stream.Stream;
import static com.github.games647.fastlogin.core.message.ChangePremiumMessage.CHANGE_CHANNEL; import static com.github.games647.fastlogin.core.message.ChangePremiumMessage.CHANGE_CHANNEL;
@ -93,6 +89,10 @@ public class BungeeManager {
if (enabled) { if (enabled) {
proxyIds = loadBungeeCordIds(); proxyIds = loadBungeeCordIds();
if (proxyIds.isEmpty()) {
plugin.getLog().info("No valid IDs found. Minecraft proxy support cannot work in the current state");
}
registerPluginChannels(); registerPluginChannels();
plugin.getLog().info("Found enabled proxy configuration"); plugin.getLog().info("Found enabled proxy configuration");
plugin.getLog().info("Remember to follow the proxy guide to complete your setup"); plugin.getLog().info("Remember to follow the proxy guide to complete your setup");