Add color to debug msg, fix updater not allowing force check

This commit is contained in:
libraryaddict 2020-05-11 15:06:18 +12:00
parent be1bebe8d5
commit 0fe54d6683
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
3 changed files with 4 additions and 3 deletions

View File

@ -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(),

View File

@ -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;

View File

@ -160,7 +160,7 @@ public class UpdateChecker {
}
public LibsMsg doUpdateCheck() {
downloading.set(false);
downloading.set(true);
try {
update = null;