updated User-Agent

This commit is contained in:
mfnalex 2020-05-21 00:58:33 +02:00
parent d6f9b9014f
commit 43053474e0

View File

@ -91,7 +91,7 @@ public class JeffChestSortUpdateChecker {
plugin.getLogger().info("Checking for available updates...");
try {
String userAgent = "ChestSort/"+plugin.getDescription().getVersion()+"@MC/"+plugin.getServer().getClass().getPackage().getName();
String userAgent = "ChestSort/"+plugin.getDescription().getVersion()+" (MC "+plugin.mcVersion+")";
HttpURLConnection httpcon = (HttpURLConnection) new URL(latestVersionLink).openConnection();
httpcon.addRequestProperty("User-Agent", userAgent);
BufferedReader reader = new BufferedReader(new InputStreamReader(httpcon.getInputStream()));