mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Merge pull request #141 from jacklin213/master
Fix spelling of available in Updater
This commit is contained in:
commit
0b1412d5c5
2 changed files with 7 additions and 6 deletions
|
@ -1891,7 +1891,7 @@ public class Commands {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s instanceof Player) {
|
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.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 + "Current version: " + ChatColor.RED + plugin.updater.getCurrentVersion());
|
||||||
s.sendMessage(ChatColor.YELLOW + "Latest version: " + ChatColor.GOLD + plugin.updater.getCurrentVersion());
|
s.sendMessage(ChatColor.YELLOW + "Latest version: " + ChatColor.GOLD + plugin.updater.getCurrentVersion());
|
||||||
|
|
|
@ -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 #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 #getCurrentVersion()} to get the version of the plugin</li>
|
||||||
* <li>{@link #getUpdateVersion()} to get the update version</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>
|
* </ul>
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
|
@ -66,11 +66,12 @@ public class Updater {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs and update message in console.
|
* Logs and update message in console.
|
||||||
* Displays different messages dependent on {@link #updateAvalible()}
|
* Displays different messages dependent on {@link #updateAvailable()}
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public void checkUpdate() {
|
public void checkUpdate() {
|
||||||
if (updateAvalible()) {
|
if (updateAvailable()) {
|
||||||
plugin.getLogger().info("===================[Update Avalible]===================");
|
plugin.getLogger().info("===================[Update Available]===================");
|
||||||
plugin.getLogger().info("You are running version " + getCurrentVersion());
|
plugin.getLogger().info("You are running version " + getCurrentVersion());
|
||||||
plugin.getLogger().info("The latest version avaliable is " + getUpdateVersion());
|
plugin.getLogger().info("The latest version avaliable is " + getUpdateVersion());
|
||||||
} else {
|
} else {
|
||||||
|
@ -96,7 +97,7 @@ public class Updater {
|
||||||
*
|
*
|
||||||
* @return true If there is an update
|
* @return true If there is an update
|
||||||
*/
|
*/
|
||||||
public boolean updateAvalible() {
|
public boolean updateAvailable() {
|
||||||
if (currentVersion.equalsIgnoreCase(getUpdateVersion())) {
|
if (currentVersion.equalsIgnoreCase(getUpdateVersion())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue