From b8471051d192af4cf72f8109d03f609d4433772d Mon Sep 17 00:00:00 2001 From: Jack Lin Date: Wed, 10 Jun 2015 10:29:56 +1200 Subject: [PATCH] Fix spelling of available in Updater --- src/com/projectkorra/ProjectKorra/Commands.java | 2 +- .../projectkorra/ProjectKorra/Utilities/Updater.java | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/com/projectkorra/ProjectKorra/Commands.java b/src/com/projectkorra/ProjectKorra/Commands.java index 280c5922..530ca711 100644 --- a/src/com/projectkorra/ProjectKorra/Commands.java +++ b/src/com/projectkorra/ProjectKorra/Commands.java @@ -1891,7 +1891,7 @@ public class Commands { } if (s instanceof Player) { - if (plugin.updater.updateAvalible()) { + if (plugin.updater.updateAvailable()) { s.sendMessage(ChatColor.GREEN + "There is a new version of " + ChatColor.GOLD + "ProjectKorra" + ChatColor.GREEN + " available!"); s.sendMessage(ChatColor.YELLOW + "Current version: " + ChatColor.RED + plugin.updater.getCurrentVersion()); s.sendMessage(ChatColor.YELLOW + "Latest version: " + ChatColor.GOLD + plugin.updater.getCurrentVersion()); diff --git a/src/com/projectkorra/ProjectKorra/Utilities/Updater.java b/src/com/projectkorra/ProjectKorra/Utilities/Updater.java index 1d195ba6..1997ef0c 100644 --- a/src/com/projectkorra/ProjectKorra/Utilities/Updater.java +++ b/src/com/projectkorra/ProjectKorra/Utilities/Updater.java @@ -23,7 +23,7 @@ import org.xml.sax.SAXException; *
  • {@link #checkUpdate()} called in {@code plugin.onEnable()} to display update message in log
  • *
  • {@link #getCurrentVersion()} to get the version of the plugin
  • *
  • {@link #getUpdateVersion()} to get the update version
  • - *
  • {@link #updateAvalible()} to check if theres an update
  • + *
  • {@link #updateAvailable()} to check if theres an update
  • * *

    * @@ -66,11 +66,12 @@ public class Updater { /** * Logs and update message in console. - * Displays different messages dependent on {@link #updateAvalible()} + * Displays different messages dependent on {@link #updateAvailable()} + * */ public void checkUpdate() { - if (updateAvalible()) { - plugin.getLogger().info("===================[Update Avalible]==================="); + if (updateAvailable()) { + plugin.getLogger().info("===================[Update Available]==================="); plugin.getLogger().info("You are running version " + getCurrentVersion()); plugin.getLogger().info("The latest version avaliable is " + getUpdateVersion()); } else { @@ -96,7 +97,7 @@ public class Updater { * * @return true If there is an update */ - public boolean updateAvalible() { + public boolean updateAvailable() { if (currentVersion.equalsIgnoreCase(getUpdateVersion())) { return false; }