Fix incorrect version info

Change the version as double to the version as string in chat when player joins the server. This will correct information like:
"Vault 15.6 is out! You are running 15.5" and change it to "Vault 1.5.6 is out! You are running 1.5.5"
This commit is contained in:
stefvanschie 2016-06-15 16:10:33 +02:00 committed by GitHub
parent 843882cb5b
commit 9ee967ece4
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ public class Vault extends JavaPlugin {
if (perms.has(player, "vault.update")) {
try {
if (newVersion > currentVersion) {
player.sendMessage("Vault " + newVersion + " is out! You are running " + currentVersion);
player.sendMessage("Vault " + newVersionTitle + " is out! You are running " + currentVersionTitle);
player.sendMessage("Update Vault at: http://dev.bukkit.org/server-mods/vault");
}
} catch (Exception e) {