diff --git a/src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java b/src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java index 6bf78af6e..16c3f5b9e 100644 --- a/src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java +++ b/src/main/java/emu/grasscutter/auth/ExternalAuthenticator.java @@ -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); } diff --git a/src/main/java/emu/grasscutter/plugin/PluginManager.java b/src/main/java/emu/grasscutter/plugin/PluginManager.java index f6f1cfbf7..756d32a0f 100644 --- a/src/main/java/emu/grasscutter/plugin/PluginManager.java +++ b/src/main/java/emu/grasscutter/plugin/PluginManager.java @@ -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); }