mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-11-30 06:33:27 +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
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
plugin.getLogger().info("Checking for available updates...");
|
|
||||||
try {
|
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+")";
|
String userAgent = "ChestSort/"+plugin.getDescription().getVersion()+" (MC "+plugin.mcVersion+", "+plugin.getServer().getOnlinePlayers().size()+"/"+plugin.getServer().getOfflinePlayers().length+")";
|
||||||
HttpURLConnection httpcon = (HttpURLConnection) new URL(latestVersionLink).openConnection();
|
HttpURLConnection httpcon = (HttpURLConnection) new URL(latestVersionLink).openConnection();
|
||||||
httpcon.addRequestProperty("User-Agent", userAgent);
|
httpcon.addRequestProperty("User-Agent", userAgent);
|
||||||
|
Loading…
Reference in New Issue
Block a user