From a155f85fa3ed203c618f9003d33916f20e3b7e72 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 22 Jan 2022 23:44:04 +0100 Subject: [PATCH] Adds the proper update check URL and updates version to 1.0.1 --- pom.xml | 2 +- .../java/net/knarcraft/permissionsigns/PermissionSigns.java | 3 ++- src/main/resources/plugin.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 4bd3d64..4e7c1e9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.knarcraft PermissionSigns - 1.0 + 1.0.1 jar PermissionSigns diff --git a/src/main/java/net/knarcraft/permissionsigns/PermissionSigns.java b/src/main/java/net/knarcraft/permissionsigns/PermissionSigns.java index c630a0e..b18c582 100644 --- a/src/main/java/net/knarcraft/permissionsigns/PermissionSigns.java +++ b/src/main/java/net/knarcraft/permissionsigns/PermissionSigns.java @@ -179,7 +179,8 @@ public final class PermissionSigns extends JavaPlugin { SignManager.loadSigns(); PermissionManager.loadTemporaryPermissions(); - UpdateChecker.checkForUpdate(this, "", () -> pluginVersion, null); + UpdateChecker.checkForUpdate(this, "https://api.spigotmc.org/legacy/update.php?resource=99426", + () -> pluginVersion, null); } /** diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f42d657..8eaf6ef 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: PermissionSigns -version: 1.0 +version: 1.0.1 main: net.knarcraft.permissionsigns.PermissionSigns api-version: 1.18 prefix: PermissionSigns