mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-26 04:25:32 +01:00
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")) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user