ayaports/user/papermc-plugin-vault/823_add-option-to-silence-no-update-logs.patch
Antoine Martin 56a29dc807
All checks were successful
/ lint (pull_request) Successful in 32s
/ deploy-x86_64 (pull_request) Successful in 40s
/ build-x86_64 (pull_request) Successful in 1m9s
/ deploy-aarch64 (pull_request) Successful in 56s
/ build-aarch64 (pull_request) Successful in 2m41s
user/papermc-plugin-vault: new aport
2024-12-24 14:05:52 -05:00

37 lines
1.4 KiB
Diff

From 52df9d3287e8d593d0e4d999c6d5daaebe947ca1 Mon Sep 17 00:00:00 2001
From: Ricardo Boss <mail@ricardoboss.de>
Date: Tue, 28 Jun 2022 18:50:18 +0200
Subject: [PATCH] Add option to silence "no update" logs (#823)
* Added "silent-no-update" config option
Added switch to turn off messages if no update is available.
* Set default value for "silent-no-update"
* Removed any "no update available" option and message
---
src/net/milkbowl/vault/Vault.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/net/milkbowl/vault/Vault.java b/src/net/milkbowl/vault/Vault.java
index ef8b5578..fd2a9787 100644
--- a/src/net/milkbowl/vault/Vault.java
+++ b/src/net/milkbowl/vault/Vault.java
@@ -171,8 +171,6 @@ public void run() {
log.warning("Update at: https://dev.bukkit.org/projects/vault");
} else if (currentVersion > newVersion) {
log.info("Stable Version: " + newVersionTitle + " | Current Version: " + currentVersionTitle);
- } else {
- log.info("No new version available");
}
} catch (Exception e) {
// ignore exceptions
@@ -182,7 +180,6 @@ public void run() {
}, 0, 432000);
}
-
});
// Load up the Plugin metrics