Skip to content

Commit

Permalink
chore(bukkit): improve update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Jun 10, 2024
1 parent b4a94df commit a148634
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ description=A modular vanish system for Minecraft servers
website=https://sayandev.org
author=Syrent

version=1.1.0-SNAPSHOT
version=1.1.0
stickynoteVersion=1.1.6
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ class FeatureUpdateChecker(
val snapshotVersion = latestSnapshot!!.name // eg: 1.1.0-SNAPSHOT-build.121
val commitHash = currentVersion.split("-").last()
if (currentVersion.removeSuffix("-${commitHash}") == snapshotVersion) return
} else {
val releaseVersion = latestRelease!!.name // eg: 1.0.1-263f0bf
val commitHash = currentVersion.split("-").last()
if (currentVersion.removeSuffix("-${commitHash}") == releaseVersion) return
}

for (line in content) {
Expand Down

0 comments on commit a148634

Please sign in to comment.