Package eu.sculkpowered.server.plugin
Interface PluginHandler
public interface PluginHandler
Handles the plugins.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToClassPath(@NotNull Plugin plugin, @NotNull Path path) Adds the specifiedPathto the plugins classpath.booleanCheck if a plugin is available.@Nullable PluginGets a plugin by its name.@NotNull Collection<Plugin> plugins()Gets a collection of all loaded plugins.
-
Method Details
-
loaded
Check if a plugin is available.- Parameters:
name- the plugin- Returns:
trueif its loaded- Since:
- 1.0.0
-
plugin
Gets a plugin by its name.- Parameters:
name- the name of the plugin- Returns:
- the plugin or null
- Since:
- 1.0.0
-
plugins
Gets a collection of all loaded plugins.- Returns:
- all loaded plugins
- Since:
- 1.0.0
-
addToClassPath
Adds the specifiedPathto the plugins classpath.- Parameters:
plugin- the pluginpath- the path
-