Search in sources :

Example 1 with SpongePaginationService

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();
}
Also used : SqlServiceImpl(org.spongepowered.common.service.sql.SqlServiceImpl) SpongeWhitelistService(org.spongepowered.common.service.whitelist.SpongeWhitelistService) MinecraftRconService(org.spongepowered.common.service.rcon.MinecraftRconService) DedicatedServer(net.minecraft.server.dedicated.DedicatedServer) SpongeUserStorageService(org.spongepowered.common.service.user.SpongeUserStorageService) SpongePaginationService(org.spongepowered.common.service.pagination.SpongePaginationService) SpongeBanService(org.spongepowered.common.service.ban.SpongeBanService)

Aggregations

DedicatedServer (net.minecraft.server.dedicated.DedicatedServer)1 SpongeBanService (org.spongepowered.common.service.ban.SpongeBanService)1 SpongePaginationService (org.spongepowered.common.service.pagination.SpongePaginationService)1 MinecraftRconService (org.spongepowered.common.service.rcon.MinecraftRconService)1 SqlServiceImpl (org.spongepowered.common.service.sql.SqlServiceImpl)1 SpongeUserStorageService (org.spongepowered.common.service.user.SpongeUserStorageService)1 SpongeWhitelistService (org.spongepowered.common.service.whitelist.SpongeWhitelistService)1