This commit is contained in:
2022-11-15 02:17:26 +01:00
parent d27ef185e6
commit 9986f477b2
5 changed files with 21 additions and 16 deletions

View File

@@ -208,7 +208,7 @@ public class T2CupdateAPI {
public static void onUpdateCheck(Plugin plugin, String prefix, String gitKey, Integer spigotID, String discord, Boolean updateCheckOnJoin, Boolean seePreReleaseUpdates, Integer timeInterval) {
String RepoURL = "https://git.t2code.net/api/v1/repos/" + gitKey + "/releases?limit=1";
if (!SelectLibConfig.getSeePreReleaseUpdates()) {
if (!seePreReleaseUpdates) {
RepoURL = RepoURL + "&pre-release=false";
}
if (!RepoURL.contains("?limit=1")) {