Merge pull request #141 from jacklin213/master

Fix spelling of available in Updater
This commit is contained in:
MistPhizzle 2015-06-10 04:26:04 -04:00
commit 0b1412d5c5
2 changed files with 7 additions and 6 deletions

View file

@ -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());

View file

@ -23,7 +23,7 @@ import org.xml.sax.SAXException;
* <li>{@link #checkUpdate()} called in {@code plugin.onEnable()} to display update message in log</li>
* <li>{@link #getCurrentVersion()} to get the version of the plugin</li>
* <li>{@link #getUpdateVersion()} to get the update version</li>
* <li>{@link #updateAvalible()} to check if theres an update</li>
* <li>{@link #updateAvailable()} to check if theres an update</li>
* </ul>
* </p>
*
@ -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;
}