mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-06 19:09:31 +01:00
Fix onLateEnable always being fired
This commit is contained in:
parent
f32ed5db89
commit
2d88405d69
@ -244,9 +244,11 @@ public class LPSpongePlugin implements LuckPermsPlugin {
|
||||
|
||||
@Listener(order = Order.LATE)
|
||||
public void onLateEnable(GamePreInitializationEvent event) {
|
||||
if (lateLoad) {
|
||||
getLog().info("Providing late registration of PermissionService...");
|
||||
game.getServiceManager().setProvider(this, PermissionService.class, (service = new LuckPermsService(this)));
|
||||
}
|
||||
}
|
||||
|
||||
@Listener
|
||||
public void onDisable(GameStoppingServerEvent event) {
|
||||
|
Loading…
Reference in New Issue
Block a user