fix: 修复检测更新时获取版本号错误的问题

This commit is contained in:
2024-03-19 17:57:27 +08:00
parent 98300804fe
commit 03b0d62b19
4 changed files with 65 additions and 63 deletions

View File

@@ -32,7 +32,7 @@ public final class UpdateCheckUtils {
}
public static void checkUpdate(@NotNull String pluginName, @NotNull ConfigSection updateConfig, @NotNull Audience sender) throws IOException {
String version = updateConfig.getString("version", "");
String version = updateConfig.getString("VERSION", "");
String checkType = updateConfig.getString("CHECK_TYPE", "");
String baseUrl = updateConfig.getString("GIT_BASE_URL");
String gitRepo = updateConfig.getString("GIT_REPO");