mirror of https://github.com/MilkBowl/Vault.git
Added "silent-no-update" config option
Added switch to turn off messages if no update is available.
This commit is contained in:
parent
3f20655f0b
commit
e41fe214b5
|
@ -172,7 +172,8 @@ public class Vault extends JavaPlugin {
|
|||
} else if (currentVersion > newVersion) {
|
||||
log.info("Stable Version: " + newVersionTitle + " | Current Version: " + currentVersionTitle);
|
||||
} else {
|
||||
log.info("No new version available");
|
||||
if (!getConfig().getBoolean("silent-no-update", false))
|
||||
log.info("No new version available");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// ignore exceptions
|
||||
|
|
Loading…
Reference in New Issue