mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-21 18:32:15 +00:00
Changes for version 2.16
This commit is contained in:
264 files changed
+3450
-2063
No files matched your search
@@ -34,6 +34,7 @@ public final class LuckPerms {
|
||||
|
||||
/**
|
||||
* Gets an instance of {@link LuckPermsApi}
|
||||
*
|
||||
* @return an api instance
|
||||
* @throws IllegalStateException if the api is not loaded
|
||||
*/
|
||||
@@ -47,6 +48,7 @@ public final class LuckPerms {
|
||||
/**
|
||||
* Gets an instance of {@link LuckPermsApi} safely. Unlike {@link LuckPerms#getApi}, this method will not throw an
|
||||
* {@link IllegalStateException} if the api is not loaded, rather return an empty {@link Optional}.
|
||||
*
|
||||
* @return an optional api instance
|
||||
*/
|
||||
public static Optional<LuckPermsApi> getApiSafe() {
|
||||
|
||||
Reference in new issue
Block a user