Package net.luckperms.api
Class LuckPermsProvider
java.lang.Object
net.luckperms.api.LuckPermsProvider
Provides static access to the
LuckPerms API.
Ideally, the ServiceManager for the platform should be used to obtain an instance, however, this provider can be used if this is not viable.
-
Method Summary
Modifier and TypeMethodDescriptionget()Gets an instance of theLuckPermsAPI, throwingIllegalStateExceptionif the API is not loaded yet.
-
Method Details
-
get
Gets an instance of theLuckPermsAPI, throwingIllegalStateExceptionif the API is not loaded yet.This method will never return null.
- Returns:
- an instance of the LuckPerms API
- Throws:
IllegalStateException- if the API is not loaded yet
-