Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
f331afe3
Commit
f331afe3
authored
3 years ago
by
Benj
Browse files
Options
Downloads
Patches
Plain Diff
Refix Javadoc and readd getPlugin comments
parent
b01a29c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java
+6
-6
6 additions, 6 deletions
...main/java/emu/grasscutter/auth/ExternalAuthenticator.java
src/main/java/emu/grasscutter/plugin/PluginManager.java
+5
-0
5 additions, 0 deletions
src/main/java/emu/grasscutter/plugin/PluginManager.java
with
11 additions
and
6 deletions
src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java
+
6
−
6
View file @
f331afe3
...
...
@@ -17,8 +17,8 @@ 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
);
...
...
@@ -26,8 +26,8 @@ public interface ExternalAuthenticator {
* 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
);
}
This diff is collapsed.
Click to expand it.
src/main/java/emu/grasscutter/plugin/PluginManager.java
+
5
−
0
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment