Test initialization of permission handlers in PermissionManager
This commit is contained in:
@@ -36,8 +36,7 @@ public class LuckPermsHandler implements PermissionHandler {
|
||||
try {
|
||||
luckPermsApi = LuckPerms.getApi();
|
||||
} catch (IllegalStateException e) {
|
||||
e.printStackTrace();
|
||||
throw new PermissionHandlerException("Could not get api of LuckPerms");
|
||||
throw new PermissionHandlerException("Could not get api of LuckPerms", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ public class PermissionHandlerException extends Exception {
|
||||
public PermissionHandlerException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public PermissionHandlerException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user