if (game.getPluginManager().getPlugin("permissionsex").isPresent()) {
getLog().warn("Detected PermissionsEx - assuming it's loaded for migration.");
getLog().warn("Delaying LuckPerms PermissionService registration.");
lateLoad = true;
} else {
<BUG>game.getServiceManager().setProvider(this, PermissionService.class, service);
}</BUG>
getLog().info("Registering API...");
apiProvider = new ApiProvider(this);
ApiHandler.registerProvider(apiProvider);

if (game.getPluginManager().getPlugin("permissionsex").isPresent()) {
getLog().warn("Detected PermissionsEx - assuming it's loaded for migration.");
getLog().warn("Delaying LuckPerms PermissionService registration.");
lateLoad = true;
} else {
game.getServiceManager().setProvider(this, PermissionService.class, service);
game.getServiceManager().setProvider(this, LuckPermsService.class, service);
}
getLog().info("Registering API...");
apiProvider = new ApiProvider(this);
ApiHandler.registerProvider(apiProvider);
