use of org.spongepowered.common.service.pagination.SpongePaginationService in project SpongeCommon by SpongePowered.
the class SpongeBootstrap method initializeServices.
public static void initializeServices() {
registerService(SqlService.class, new SqlServiceImpl());
registerService(PaginationService.class, new SpongePaginationService());
if (SpongeImpl.getGame().getPlatform().getType() == Platform.Type.SERVER) {
registerService(RconService.class, new MinecraftRconService((DedicatedServer) Sponge.getServer()));
}
registerService(UserStorageService.class, new SpongeUserStorageService());
registerService(BanService.class, new SpongeBanService());
registerService(WhitelistService.class, new SpongeWhitelistService());
SpongeInternalListeners.getInstance().registerServiceCallback(PermissionService.class, input -> {
if (Sponge.isServerAvailable()) {
Sponge.getServer().getConsole().getContainingCollection();
}
});
SpongeUsernameCache.load();
}
Aggregations