Skip to content

Commit

Permalink
Fix update checking
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaFox161 committed Aug 7, 2016
1 parent 811d75a commit beb62d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit beb62d7

Please sign in to comment.