diff --git a/build.gradle b/build.gradle index 0c5d843..8962124 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ sourceCompatibility = 17 targetCompatibility = 17 group 'com.xtaolabs.gcauth_oauth' -version '1.1.1' +version '1.1.2' repositories { mavenCentral() diff --git a/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java b/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java index a618e4f..5c091bb 100644 --- a/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java +++ b/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java @@ -16,7 +16,7 @@ import java.io.File; public class GCAuth_OAuth extends Plugin { @Override public void onEnable() { - String Login_Html_Path = PLUGINS_FOLDER + "/GCAuth/OAuth/login.html"; + String Login_Html_Path = PLUGIN("GCAuth/OAuth/login.html"); File Login_Html = new File(Login_Html_Path); if(!Login_Html.exists()) { Grasscutter.getLogger().warn(String.format("[GCAuth_OAuth] %s not found", Login_Html_Path)); @@ -33,7 +33,7 @@ public class GCAuth_OAuth extends Plugin { } public void loadTwitterLogin() { - String folder_name = PLUGINS_FOLDER + "/GCAuth/OAuth/"; + String folder_name = PLUGIN("GCAuth/OAuth/"); Grasscutter.setAuthenticationSystem(new GCAuthAuthenticationHandler()); HttpServer app = Grasscutter.getHttpServer(); diff --git a/src/main/resources/plugin.json b/src/main/resources/plugin.json index 44424e5..478f5d5 100644 --- a/src/main/resources/plugin.json +++ b/src/main/resources/plugin.json @@ -1,7 +1,7 @@ { "name": "GCAuth_OAuth", "description": "The in-game login system for Grasscutter is based on oauth and GCAuth.", - "version": "1.1.1", + "version": "1.1.2", "author": ["omg-xtao"], "mainClass": "com.xtaolabs.gcauth_oauth.GCAuth_OAuth" }