diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml index ef95d22..f9bd1d2 100644 --- a/dependency-reduced-pom.xml +++ b/dependency-reduced-pom.xml @@ -1,26 +1,26 @@ - 4.0.0 - cn.cnklp.studio - UnionBanClientSpigot - 1.0-SNAPSHOT - - - - maven-shade-plugin - 3.2.3 - - - package - - shade - - - true - - - + 4.0.0 + cn.cnklp.studio + UnionBanClientSpigot + 1.0-SNAPSHOT + + + + maven-shade-plugin + 3.2.3 + + + package + + shade + + + true + + + maven-compiler-plugin diff --git a/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/ClientPlugin.java b/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/ClientPlugin.java index f15700f..8bedf54 100644 --- a/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/ClientPlugin.java +++ b/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/ClientPlugin.java @@ -23,6 +23,8 @@ public class ClientPlugin extends JavaPlugin { Objects.requireNonNull(this.getCommand("unionban")).setExecutor(executor); Objects.requireNonNull(this.getCommand("unionban")).setTabCompleter(executor); saveDefaultConfig(); + ServerAddress = getConfig().getString("ServerAddress"); + getLogger().info("UnionBan Server address: " + ServerAddress); new LoginTask(this, Bukkit.getConsoleSender()).runTaskAsynchronously(this); } diff --git a/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/GetServerStatusTask.java b/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/GetServerStatusTask.java index 7d60a51..03f4626 100644 --- a/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/GetServerStatusTask.java +++ b/src/main/java/cn/cnklp/studio/UnionBanClientSpigot/GetServerStatusTask.java @@ -58,6 +58,7 @@ public class GetServerStatusTask extends BukkitRunnable { @Override public void run() { sender.sendMessage("Querying server status..."); + sender.sendMessage("The UnionBan Server address is " + plugin.ServerAddress); try { String version = GetVersion(plugin.ServerAddress); sender.sendMessage("UnionBan Server is ON! Version: " + version); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index e30c526..6eeec84 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,4 +1,7 @@ -# Do NOT change this file manually! +# UnionBan server address +ServerAddress: "https://api.unionban.icu" +# Login information. +# Do NOT change these manually! username: "" password: "" api_key: "" \ No newline at end of file