From aafa15db057dd082491d6460a2f0a2c9cb0a59f4 Mon Sep 17 00:00:00 2001 From: ajgeiss0702 Date: Wed, 20 Oct 2021 20:37:15 -0700 Subject: [PATCH] add option to disable checking for proxy response --- spigot/src/main/java/us/ajg0702/queue/spigot/Commands.java | 2 +- spigot/src/main/resources/spigot-config.yml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/Commands.java b/spigot/src/main/java/us/ajg0702/queue/spigot/Commands.java index cbd9460..f39b8cd 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/Commands.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/Commands.java @@ -17,7 +17,7 @@ public class Commands implements CommandExecutor { @Override public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) { - if(!pl.hasProxy()) { + if(!pl.hasProxy() && pl.config.getBoolean("check-proxy-response")) { sender.sendMessage(color("&cajQueue must also be installed on the proxy!&7 If it has been installed on the proxy, make sure it loaded correctly and try relogging.")); return true; } diff --git a/spigot/src/main/resources/spigot-config.yml b/spigot/src/main/resources/spigot-config.yml index e74fd04..4d5825e 100644 --- a/spigot/src/main/resources/spigot-config.yml +++ b/spigot/src/main/resources/spigot-config.yml @@ -11,8 +11,12 @@ send-queue-commands-in-batches: false # If you disable this, ajQueue will not be able to tell if the server is whitelisted! take-over-motd-for-whitelist: true +# Should we check if the proxy responds to plugin messages? +# For some reason this seems to fail for some people, +# so disable this if ajqueue says its not installed on the proxy when it actually is +check-proxy-response: true # Dont touch this -config-version: 2 \ No newline at end of file +config-version: 3 \ No newline at end of file