minor improvements to the spigot-side
This commit is contained in:
@@ -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() && pl.config.getBoolean("check-proxy-response")) {
|
||||
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."));
|
||||
return true;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public class Commands implements CommandExecutor {
|
||||
player = tply;
|
||||
srvname = args[1];
|
||||
}
|
||||
if(pl.config.getBoolean("send-queue-commands-in-batches")) {
|
||||
if(pl.getAConfig().getBoolean("send-queue-commands-in-batches")) {
|
||||
pl.queuebatch.put(player, srvname);
|
||||
} else {
|
||||
assert player != null;
|
||||
|
||||
@@ -23,12 +23,12 @@ import java.util.HashMap;
|
||||
@SuppressWarnings("UnstableApiUsage")
|
||||
public class SpigotMain extends JavaPlugin implements PluginMessageListener,Listener {
|
||||
|
||||
boolean papi = false;
|
||||
Placeholders placeholders;
|
||||
private boolean papi = false;
|
||||
private Placeholders placeholders;
|
||||
|
||||
ConfigFile config;
|
||||
private ConfigFile config;
|
||||
|
||||
boolean hasProxy = false;
|
||||
private boolean hasProxy = false;
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public void onEnable() {
|
||||
@@ -242,4 +242,9 @@ public class SpigotMain extends JavaPlugin implements PluginMessageListener,List
|
||||
}
|
||||
e.setMotd("ajQueue;whitelisted="+whitelist);
|
||||
}
|
||||
|
||||
|
||||
public ConfigFile getAConfig() {
|
||||
return config;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user