mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-11-29 22:24:06 +01:00
Fixed "checking for available updates" message
This commit is contained in:
parent
0564c8d51c
commit
c1fd1abc89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user