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)
|
@Listener(order = Order.LATE)
|
||||||
public void onLateEnable(GamePreInitializationEvent event) {
|
public void onLateEnable(GamePreInitializationEvent event) {
|
||||||
getLog().info("Providing late registration of PermissionService...");
|
if (lateLoad) {
|
||||||
game.getServiceManager().setProvider(this, PermissionService.class, (service = new LuckPermsService(this)));
|
getLog().info("Providing late registration of PermissionService...");
|
||||||
|
game.getServiceManager().setProvider(this, PermissionService.class, (service = new LuckPermsService(this)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Listener
|
@Listener
|
||||||
|
Loading…
Reference in New Issue
Block a user