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 7acad6d..982ec0a 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/Commands.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/Commands.java @@ -18,7 +18,14 @@ public class Commands implements CommandExecutor { @Override public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) { if(!pl.hasProxy() && pl.getAConfig().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.")); + if(sender instanceof Player) pl.sendMessage((Player) sender, "ack", ""); + sender.sendMessage( + color( + "&c" + + (sender.hasPermission("ajqueue.manage") ? "ajQueue" : "The queue plugin") + + " must also be installed on the proxy!&7 If it has been installed on the proxy, make sure it loaded correctly and try again." + ) + ); return true; } Player player = null;