Package net.luckperms.api.extension
Interface ExtensionManager
public interface ExtensionManager
Manages extensions.
-
Method Summary
Modifier and TypeMethodDescriptionGets a collection of all loaded extensions.loadExtension(Path path) Loads the extension at the given path.voidloadExtension(Extension extension) Loads the given extension.
-
Method Details
-
loadExtension
Loads the given extension.- Parameters:
extension- the extension to load
-
loadExtension
Loads the extension at the given path.- Parameters:
path- the path to the extension- Returns:
- the extension
- Throws:
IOException- if the extension could not be loaded
-
getLoadedExtensions
@NonNull @Unmodifiable Collection<Extension> getLoadedExtensions()Gets a collection of all loaded extensions.- Returns:
- the loaded extensions
-