From 0fe54d6683d60e115c0e47a26be329a727749b6e Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 11 May 2020 15:06:18 +1200 Subject: [PATCH] Add color to debug msg, fix updater not allowing force check --- .../disguise/commands/libsdisguises/LDDebugPlayer.java | 3 ++- .../disguise/commands/libsdisguises/LDUpdate.java | 2 +- .../disguise/utilities/updates/UpdateChecker.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDDebugPlayer.java b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDDebugPlayer.java index ab3cf120..81ae10a8 100644 --- a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDDebugPlayer.java +++ b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDDebugPlayer.java @@ -56,7 +56,8 @@ public class LDDebugPlayer implements LDCommand { name.getPlayer().replace(ChatColor.COLOR_CHAR, '&'), name.getTeamName())); if (DisguiseConfig.isArmorstandsName()) { - player.sendMessage("Oh! You're using armorstands! Lets give some debug for that too.."); + player.sendMessage( + ChatColor.AQUA + "Oh! You're using armorstands! Lets give some debug for that too.."); player.sendMessage(ChatColor.RED + String.format("Names: %s, Length: %s, Custom Name: '%s'", new Gson().toJson(disg.getMultiName()).replace(ChatColor.COLOR_CHAR, '&'), disg.getMultiNameLength(), diff --git a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdate.java b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdate.java index 8621b782..ee6e0338 100644 --- a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdate.java +++ b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdate.java @@ -54,7 +54,7 @@ public class LDUpdate implements LDCommand { DisguiseConfig.setUsingReleaseBuilds(releaseBuilds); } - if (checker.getUpdate() != null && checker.getUpdate().isReleaseBuild() == releaseBuilds) { + if (checker.getUpdate() != null && checker.getUpdate().isReleaseBuild() == releaseBuilds && args.length <= 1) { if (checker.isServerLatestVersion()) { sender.sendMessage(LibsMsg.UPDATE_ON_LATEST.get()); return; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java b/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java index 0485c1bd..9649e530 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/updates/UpdateChecker.java @@ -160,7 +160,7 @@ public class UpdateChecker { } public LibsMsg doUpdateCheck() { - downloading.set(false); + downloading.set(true); try { update = null;