Skip to content

Commit 5937b12

Browse files
committed
chore(bukkit): change update checker snapshot versions check
1 parent a8fc519 commit 5937b12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sayanvanish-bukkit/src/main/kotlin/org/sayandev/sayanvanish/bukkit/feature/features/FeatureUpdateChecker.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ class FeatureUpdateChecker(
8282

8383
private fun send(sender: CommandSender) {
8484
if (latestRelease == null || latestSnapshot == null) return
85-
if (latestRelease!!.name == plugin.description.version || latestSnapshot!!.name == plugin.description.version) return
85+
var normalCurrentVersion = plugin.description.version
86+
normalCurrentVersion = normalCurrentVersion.removeSuffix("-" + normalCurrentVersion.split("build.")[1].split("-")[1])
87+
if (latestRelease!!.name == plugin.description.version || latestSnapshot!!.name == normalCurrentVersion) return
8688

8789
for (line in content) {
8890
sender.sendMessage(line

0 commit comments

Comments
 (0)