mirror of
https://github.com/Xtao-Labs/GCAuth-OAuth.git
synced 2024-11-25 09:37:35 +00:00
🐛 Adapt upstream breaking changes PR#893
This commit is contained in:
parent
282ec1dd9a
commit
4ca701829e
@ -10,7 +10,7 @@ sourceCompatibility = 17
|
||||
targetCompatibility = 17
|
||||
|
||||
group 'com.xtaolabs.gcauth_oauth'
|
||||
version '1.1.1'
|
||||
version '1.1.2'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
@ -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();
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user