Fixed update checking using http instead of https

This commit is contained in:
libraryaddict 2018-02-13 19:15:47 +13:00
parent 819487743c
commit 758f24108b

View File

@ -37,7 +37,7 @@ public class UpdateChecker {
*/ */
private String getSpigotVersion() { private String getSpigotVersion() {
try { try {
HttpURLConnection con = (HttpURLConnection) new URL("http://www.spigotmc.org/api/general.php").openConnection(); HttpURLConnection con = (HttpURLConnection) new URL("https://www.spigotmc.org/api/general.php").openConnection();
con.setDoOutput(true); con.setDoOutput(true);
con.setRequestMethod("POST"); con.setRequestMethod("POST");
con.getOutputStream().write( con.getOutputStream().write(