From beb62d7aa22627b575a21ba850d04d250fb71f61 Mon Sep 17 00:00:00 2001 From: NovaFox161 Date: Sun, 7 Aug 2016 14:51:24 -0500 Subject: [PATCH] Fix update checking --- src/main/java/com/cloudcraftgaming/perworldchatplus/Main.java | 2 +- .../perworldchatplus/listeners/JoinListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/cloudcraftgaming/perworldchatplus/Main.java b/src/main/java/com/cloudcraftgaming/perworldchatplus/Main.java index fe81484..c4fa925 100644 --- a/src/main/java/com/cloudcraftgaming/perworldchatplus/Main.java +++ b/src/main/java/com/cloudcraftgaming/perworldchatplus/Main.java @@ -65,7 +65,7 @@ public void onEnable() { private void checkUpdatesOnStart() { if (getConfig().getString("Check for Updates").equalsIgnoreCase("True")) { getLogger().info("Checking for updates..."); - this.updateChecker = new UpdateChecker(this, "http://dev.bukkit.org/bukkit-plugins/per-world-chat-plus/files.rss"); + this.updateChecker = new UpdateChecker(this, "https://dev.bukkit.org/bukkit-plugins/per-world-chat-plus/files.rss"); if (this.updateChecker.UpdateNeeded()) { getLogger().info("A new update for PerWorldChatPlus is available! Version: " + updateChecker.getVersion()); getLogger().info("Download it from: " + updateChecker.getLink()); diff --git a/src/main/java/com/cloudcraftgaming/perworldchatplus/listeners/JoinListener.java b/src/main/java/com/cloudcraftgaming/perworldchatplus/listeners/JoinListener.java index 2686986..288c6b6 100644 --- a/src/main/java/com/cloudcraftgaming/perworldchatplus/listeners/JoinListener.java +++ b/src/main/java/com/cloudcraftgaming/perworldchatplus/listeners/JoinListener.java @@ -33,7 +33,7 @@ public void updateCheckOnJoin(PlayerJoinEvent event) { if (plugin.getConfig().getString("Check for Updates").equalsIgnoreCase("True")) { Player player = event.getPlayer(); if (player.hasPermission("pwcp.notify.update")) { - plugin.updateChecker = new UpdateChecker(plugin, "http://dev.bukkit.org/bukkit-plugins/per-world-chat-plus/files.rss"); + plugin.updateChecker = new UpdateChecker(plugin, "https://dev.bukkit.org/bukkit-plugins/per-world-chat-plus/files.rss"); if (plugin.updateChecker.UpdateNeeded()) { player.sendMessage(ChatColor.GREEN + "A new update for PerWorldChatPlus is available! Version: " + ChatColor.BLUE + plugin.updateChecker.getVersion());