Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
fix: improve how we determine if using FAWE from jenkins (#2754)
- SNAPSHOT will usually only be removed if it's a release version - If others remove SNAPSHOT, then they're probably doing their own stuff, just use this as the "release" check - fixes #2744
Dieser Commit ist enthalten in:
Ursprung
5da6c65df6
Commit
7635eec2e4
@ -59,12 +59,12 @@ public class UpdateNotification {
|
|||||||
Document doc = db.parse(body);
|
Document doc = db.parse(body);
|
||||||
faweVersion = doc.getElementsByTagName("lastSuccessfulBuild").item(0).getFirstChild().getTextContent();
|
faweVersion = doc.getElementsByTagName("lastSuccessfulBuild").item(0).getFirstChild().getTextContent();
|
||||||
FaweVersion faweVersion = Fawe.instance().getVersion();
|
FaweVersion faweVersion = Fawe.instance().getVersion();
|
||||||
if (faweVersion.build == 0 && !faweVersion.snapshot) {
|
if (faweVersion.build == 0 && faweVersion.snapshot) {
|
||||||
LOGGER.warn("You are using a snapshot or a custom version of FAWE. This is not an official build distributed " +
|
LOGGER.warn("You are using a snapshot or a custom version of FAWE. This is not an official build distributed " +
|
||||||
"via https://www.spigotmc.org/resources/13932/");
|
"via https://www.spigotmc.org/resources/13932/");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (faweVersion.build < Integer.parseInt(UpdateNotification.faweVersion)) {
|
if (faweVersion.snapshot && faweVersion.build < Integer.parseInt(UpdateNotification.faweVersion)) {
|
||||||
hasUpdate = true;
|
hasUpdate = true;
|
||||||
int versionDifference = Integer.parseInt(UpdateNotification.faweVersion) - faweVersion.build;
|
int versionDifference = Integer.parseInt(UpdateNotification.faweVersion) - faweVersion.build;
|
||||||
LOGGER.warn(
|
LOGGER.warn(
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren