Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
f331afe3
Commit
f331afe3
authored
Jun 22, 2022
by
Benj
Browse files
Refix Javadoc and readd getPlugin comments
parent
b01a29c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java
View file @
f331afe3
...
...
@@ -16,18 +16,18 @@ public interface ExternalAuthenticator {
/**
* Called when an external account creation request is made.
* @param request The authentication request.
*
* For developers: Use
{@link
AuthenticationRequest#getRequest()
}
to get the request body.
* Use
{@link
AuthenticationRequest#getResponse()
}
to get the response body.
*
* For developers: Use AuthenticationRequest#getRequest() to get the request body.
* Use AuthenticationRequest#getResponse() to get the response body.
*/
void
handleAccountCreation
(
AuthenticationRequest
request
);
/**
* Called when an external password reset request is made.
* @param request The authentication request.
*
* For developers: Use
{@link
AuthenticationRequest#getRequest()
}
to get the request body.
* Use
{@link
AuthenticationRequest#getResponse()
}
to get the response body.
*
* For developers: Use AuthenticationRequest#getRequest() to get the request body.
* Use AuthenticationRequest#getResponse() to get the response body.
*/
void
handlePasswordReset
(
AuthenticationRequest
request
);
}
src/main/java/emu/grasscutter/plugin/PluginManager.java
View file @
f331afe3
...
...
@@ -171,6 +171,11 @@ public final class PluginManager {
.
toList
().
forEach
(
handler
->
this
.
invokeHandler
(
event
,
handler
));
}
/**
* Gets a plugin's instance by its name.
* @param name The name of the plugin.
* @return Either null, or the plugin's instance.
*/
public
Plugin
getPlugin
(
String
name
)
{
return
this
.
plugins
.
get
(
name
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment