use of com.skelril.skree.content.zone.group.jungleraid.JungleRaidManager 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());
try {
service.registerManager(new TheForgeManager(loadConfig("zone/the_forge.json", TheForgeConfig.class)));
} catch (IOException e) {
e.printStackTrace();
}
service.registerManager(new CatacombsManager());
service.registerManager(new DesmireDungeonManager());
service.registerManager(new FreakyFourManager());
service.registerManager(new GoldRushManager());
service.registerManager(new JungleRaidManager());
service.registerManager(new PatientXManager());
service.registerManager(new ShnugglesPrimeManager());
service.registerManager(new SkyWarsManager());
service.registerManager(new TheButcherShopManager());
Sponge.getServiceManager().setProvider(SkreePlugin.inst(), ZoneService.class, service);
Sponge.getCommandManager().register(SkreePlugin.inst(), ZoneMeCommand.aquireSpec(), "zoneme");
}).delayTicks(1).submit(SkreePlugin.inst());
}
Aggregations