Fix onLateEnable always being fired

This commit is contained in:
Luck 2016-11-22 20:42:43 +00:00
parent f32ed5db89
commit 2d88405d69
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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) {