MCPcopy Create free account
hub / github.com/egg82/fetcharr / Plugin

Interface Plugin

API/src/main/java/me/egg82/fetcharr/api/plugin/Plugin.java:8–25  ·  view source on GitHub ↗

A plugin instance. All plugins implement this interface.

Source from the content-addressed store, hash-verified

6 * A plugin instance. All plugins implement this interface.
7 */
8public interface Plugin {
9 /**
10 * Plugin initialization. Called on startup, before {@link #start()}.
11 *
12 * @param context Any context the plugin may need for initialization.
13 */
14 void init(@NotNull PluginContext context) throws Exception;
15
16 /**
17 * Plugin start. Called on startup, after {@link #init(PluginContext)}.
18 */
19 void start() throws Exception;
20
21 /**
22 * Plugin stop. Called on shutdown.
23 */
24 void stop() throws Exception;
25}

Callers 6

mainMethod · 0.65
setupUnirestMethod · 0.65
initMethod · 0.65
mainMethod · 0.65
startMethod · 0.65
shutdownMethod · 0.65

Implementers 1

WebhookWebhook/src/main/java/me/egg82/fwebhoo

Calls

no outgoing calls

Tested by

no test coverage detected