Fixes #769 - outdated update link

This commit is contained in:
Nick Minkler 2019-06-11 17:59:33 -07:00 committed by GitHub
parent c4c953753e
commit b2c7296775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -105,6 +105,7 @@ import net.milkbowl.vault.economy.plugins.Economy_MiConomy;
public class Vault extends JavaPlugin {
private static final String VAULT_BUKKIT_URL = "https://dev.bukkit.org/projects/Vault";
private static Logger log;
private Permission perms;
private String newVersionTitle = "";
@ -620,7 +621,7 @@ public class Vault extends JavaPlugin {
try {
if (newVersion > 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: " + VAULT_BUKKIT_URL);
}
} catch (Exception e) {
// Ignore exceptions