Fix onLateEnable always being fired
This commit is contained in:
parent
f32ed5db89
commit
2d88405d69
@ -244,8 +244,10 @@ public class LPSpongePlugin implements LuckPermsPlugin {
|
||||
|
||||
@Listener(order = Order.LATE)
|
||||
public void onLateEnable(GamePreInitializationEvent event) {
|
||||
getLog().info("Providing late registration of PermissionService...");
|
||||
game.getServiceManager().setProvider(this, PermissionService.class, (service = new LuckPermsService(this)));
|
||||
if (lateLoad) {
|
||||
getLog().info("Providing late registration of PermissionService...");
|
||||
game.getServiceManager().setProvider(this, PermissionService.class, (service = new LuckPermsService(this)));
|
||||
}
|
||||
}
|
||||
|
||||
@Listener
|
||||
|
Loading…
Reference in New Issue
Block a user