mirror of https://github.com/MilkBowl/Vault.git
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:
parent
843882cb5b
commit
9ee967ece4
|
@ -584,7 +584,7 @@ public class Vault extends JavaPlugin {
|
||||||
if (perms.has(player, "vault.update")) {
|
if (perms.has(player, "vault.update")) {
|
||||||
try {
|
try {
|
||||||
if (newVersion > currentVersion) {
|
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");
|
player.sendMessage("Update Vault at: http://dev.bukkit.org/server-mods/vault");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue