Search in sources :

Example 1 with CursedMineManager

use of com.skelril.skree.content.zone.global.cursedmine.CursedMineManager in project Skree by Skelril.

the class ZoneSystem method init.

@NModuleTrigger(trigger = "SERVER_STARTED", dependencies = { "World System" })
public void init() {
    Optional<WorldService> optService = Sponge.getServiceManager().provide(WorldService.class);
    World world = optService.get().getEffectWrapper(InstanceWorldWrapper.class).get().getWorlds().iterator().next();
    Task.builder().execute(() -> {
        WorldResolver instWorldResolver = new WorldResolver(world, WorldEdit.getInstance());
        service = new ZoneServiceImpl(new CacheBasedAllocator(Decorators.ZONE_PRIMARY_DECORATOR, instWorldResolver));
        service.registerManager(new CursedMineManager());
        service.registerManager(new TempleOfFateManager());
        service.registerManager(new TheForgeManager());
        service.registerManager(new CatacombsManager());
        service.registerManager(new FreakyFourManager());
        service.registerManager(new GoldRushManager());
        service.registerManager(new JungleRaidManager());
        service.registerManager(new PatientXManager());
        service.registerManager(new ShnugglesPrimeManager());
        service.registerManager(new SkyWarsManager());
        Sponge.getServiceManager().setProvider(SkreePlugin.inst(), ZoneService.class, service);
        Sponge.getCommandManager().register(SkreePlugin.inst(), ZoneMeCommand.aquireSpec(), "zoneme");
    }).delayTicks(1).submit(SkreePlugin.inst());
}
Also used : CacheBasedAllocator(com.skelril.skree.service.internal.zone.allocator.CacheBasedAllocator) JungleRaidManager(com.skelril.skree.content.zone.group.jungleraid.JungleRaidManager) WorldResolver(com.skelril.skree.service.internal.zone.WorldResolver) TempleOfFateManager(com.skelril.skree.content.zone.global.templeoffate.TempleOfFateManager) ShnugglesPrimeManager(com.skelril.skree.content.zone.group.shnugglesprime.ShnugglesPrimeManager) TheForgeManager(com.skelril.skree.content.zone.global.theforge.TheForgeManager) World(org.spongepowered.api.world.World) ZoneServiceImpl(com.skelril.skree.service.internal.zone.ZoneServiceImpl) WorldService(com.skelril.skree.service.WorldService) GoldRushManager(com.skelril.skree.content.zone.group.goldrush.GoldRushManager) PatientXManager(com.skelril.skree.content.zone.group.patientx.PatientXManager) SkyWarsManager(com.skelril.skree.content.zone.group.skywars.SkyWarsManager) CatacombsManager(com.skelril.skree.content.zone.group.catacombs.CatacombsManager) FreakyFourManager(com.skelril.skree.content.zone.group.freakyfour.FreakyFourManager) CursedMineManager(com.skelril.skree.content.zone.global.cursedmine.CursedMineManager) NModuleTrigger(com.skelril.nitro.module.NModuleTrigger)

Aggregations

NModuleTrigger (com.skelril.nitro.module.NModuleTrigger)1 CursedMineManager (com.skelril.skree.content.zone.global.cursedmine.CursedMineManager)1 TempleOfFateManager (com.skelril.skree.content.zone.global.templeoffate.TempleOfFateManager)1 TheForgeManager (com.skelril.skree.content.zone.global.theforge.TheForgeManager)1 CatacombsManager (com.skelril.skree.content.zone.group.catacombs.CatacombsManager)1 FreakyFourManager (com.skelril.skree.content.zone.group.freakyfour.FreakyFourManager)1 GoldRushManager (com.skelril.skree.content.zone.group.goldrush.GoldRushManager)1 JungleRaidManager (com.skelril.skree.content.zone.group.jungleraid.JungleRaidManager)1 PatientXManager (com.skelril.skree.content.zone.group.patientx.PatientXManager)1 ShnugglesPrimeManager (com.skelril.skree.content.zone.group.shnugglesprime.ShnugglesPrimeManager)1 SkyWarsManager (com.skelril.skree.content.zone.group.skywars.SkyWarsManager)1 WorldService (com.skelril.skree.service.WorldService)1 WorldResolver (com.skelril.skree.service.internal.zone.WorldResolver)1 ZoneServiceImpl (com.skelril.skree.service.internal.zone.ZoneServiceImpl)1 CacheBasedAllocator (com.skelril.skree.service.internal.zone.allocator.CacheBasedAllocator)1 World (org.spongepowered.api.world.World)1