Package eu.sculkpowered.server.plugin
Interface PluginHandler
public interface PluginHandler
Handles the plugins.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToClassPath
(@NotNull Plugin plugin, @NotNull Path path) Adds the specifiedPath
to the plugins classpath.boolean
Check if a plugin is available.@Nullable Plugin
Gets 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:
true
if 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 specifiedPath
to the plugins classpath.- Parameters:
plugin
- the pluginpath
- the path
-