LuckPerms

LuckPerms

1M Downloads

LuckPerms API NotLoadedException during server shutdown with FTB mods

dmitry2103 opened this issue ยท 1 comments

commented

Description

Hello,

I am encountering an issue where the server throws a LuckPerms API NotLoadedException during the shutdown process. This appears to be caused by FTB mods (specifically ftb-xmod-compat-fabric and possibly ftb-chunks) attempting to access the LuckPerms API after it has already been unloaded.

Environment:

LuckPerms Fabric version: 5.4.102
FTB mods versions:
ftb-xmod-compat-fabric: 2.1.2
ftb-chunks-fabric: 2001.3.1
Minecraft server version: 1.20.1
Please let me know if you need additional details or testing.

Reproduction Steps

Install LuckPerms Fabric and FTB mods (ftb-xmod-compat-fabric and ftb-chunks).
Run the server as normal.
Shut down the server.
Observe the error in the logs.
Expected behavior:
The server should shut down without errors, and FTB mods should not access the LuckPerms API after it is unloaded.

Expected Behaviour

d

Server Details

fabric 1.20.1

LuckPerms Version

5.4.102

Logs and Configs

vbnet
[01:14:06] [Server thread/ERROR]: Exception stopping the server
net.luckperms.api.LuckPermsProvider$NotLoadedException: The LuckPerms API isn't loaded yet!
This could be because:
a) the LuckPerms plugin is not installed or it failed to enable
b) the plugin in the stacktrace does not declare a dependency on LuckPerms
c) the plugin in the stacktrace is retrieving the API before the plugin 'enable' phase
(call the #get method in onEnable, not the constructor!)
at net.luckperms.api.LuckPermsProvider.get(LuckPermsProvider.java:53) ~[LuckPerms-Fabric-5.4.102.jar:?]
at dev.ftb.mods.ftbxmodcompat.generic.permissions.LuckPermsProvider.getMetaData(LuckPermsProvider.java:34) ~[ftb-xmod-compat-fabric-2.1.2.jar:?]
...

Extra Details

No response

commented

this would be an issue with the mod trying to access LP after it has already disabled. there is nothing LP can do to fix that