Add color to debug msg, fix updater not allowing force check
This commit is contained in:
		| @@ -56,7 +56,8 @@ public class LDDebugPlayer implements LDCommand { | |||||||
|                             name.getPlayer().replace(ChatColor.COLOR_CHAR, '&'), name.getTeamName())); |                             name.getPlayer().replace(ChatColor.COLOR_CHAR, '&'), name.getTeamName())); | ||||||
|  |  | ||||||
|             if (DisguiseConfig.isArmorstandsName()) { |             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'", |                 player.sendMessage(ChatColor.RED + String.format("Names: %s, Length: %s, Custom Name: '%s'", | ||||||
|                         new Gson().toJson(disg.getMultiName()).replace(ChatColor.COLOR_CHAR, '&'), |                         new Gson().toJson(disg.getMultiName()).replace(ChatColor.COLOR_CHAR, '&'), | ||||||
|                         disg.getMultiNameLength(), |                         disg.getMultiNameLength(), | ||||||
|   | |||||||
| @@ -54,7 +54,7 @@ public class LDUpdate implements LDCommand { | |||||||
|             DisguiseConfig.setUsingReleaseBuilds(releaseBuilds); |             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()) { |             if (checker.isServerLatestVersion()) { | ||||||
|                 sender.sendMessage(LibsMsg.UPDATE_ON_LATEST.get()); |                 sender.sendMessage(LibsMsg.UPDATE_ON_LATEST.get()); | ||||||
|                 return; |                 return; | ||||||
|   | |||||||
| @@ -160,7 +160,7 @@ public class UpdateChecker { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     public LibsMsg doUpdateCheck() { |     public LibsMsg doUpdateCheck() { | ||||||
|         downloading.set(false); |         downloading.set(true); | ||||||
|  |  | ||||||
|         try { |         try { | ||||||
|             update = null; |             update = null; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user