Fixed "checking for available updates" message

This commit is contained in:
mfnalex 2020-06-11 20:08:51 +02:00
parent 0564c8d51c
commit c1fd1abc89

View File

@ -89,8 +89,8 @@ public class ChestSortUpdateChecker {
@Override
public void run() {
plugin.getLogger().info("Checking for available updates...");
try {
plugin.getLogger().info("Checking for available updates...");
String userAgent = "ChestSort/"+plugin.getDescription().getVersion()+" (MC "+plugin.mcVersion+", "+plugin.getServer().getOnlinePlayers().size()+"/"+plugin.getServer().getOfflinePlayers().length+")";
HttpURLConnection httpcon = (HttpURLConnection) new URL(latestVersionLink).openConnection();
httpcon.addRequestProperty("User-Agent", userAgent);