Search in sources :

Example 1 with PlotSquared

use of com.plotsquared.core.PlotSquared in project PlotSquared by IntellectualSites.

the class PlotSquaredModule method configure.

@Override
protected void configure() {
    final PlotSquared plotSquared = PlotSquared.get();
    bind(ServicePipeline.class).toInstance(ServicePipeline.builder().build());
    bind(YamlConfiguration.class).annotatedWith(WorldConfig.class).toInstance(plotSquared.getWorldConfiguration());
    bind(File.class).annotatedWith(WorldFile.class).toInstance(plotSquared.getWorldsFile());
    bind(File.class).annotatedWith(ConfigFile.class).toInstance(plotSquared.getConfigFile());
    bind(PlotListener.class).toInstance(plotSquared.getPlotListener());
    bind(UUIDPipeline.class).annotatedWith(ImpromptuPipeline.class).toInstance(plotSquared.getImpromptuUUIDPipeline());
    bind(UUIDPipeline.class).annotatedWith(BackgroundPipeline.class).toInstance(plotSquared.getBackgroundUUIDPipeline());
    bind(WorldEdit.class).toInstance(WorldEdit.getInstance());
    bind(EventDispatcher.class).toInstance(plotSquared.getEventDispatcher());
}
Also used : BackgroundPipeline(com.plotsquared.core.inject.annotations.BackgroundPipeline) EventDispatcher(com.plotsquared.core.util.EventDispatcher) WorldEdit(com.sk89q.worldedit.WorldEdit) ConfigFile(com.plotsquared.core.inject.annotations.ConfigFile) PlotListener(com.plotsquared.core.listener.PlotListener) ImpromptuPipeline(com.plotsquared.core.inject.annotations.ImpromptuPipeline) WorldFile(com.plotsquared.core.inject.annotations.WorldFile) ServicePipeline(cloud.commandframework.services.ServicePipeline) WorldConfig(com.plotsquared.core.inject.annotations.WorldConfig) PlotSquared(com.plotsquared.core.PlotSquared)

Aggregations

ServicePipeline (cloud.commandframework.services.ServicePipeline)1 PlotSquared (com.plotsquared.core.PlotSquared)1 BackgroundPipeline (com.plotsquared.core.inject.annotations.BackgroundPipeline)1 ConfigFile (com.plotsquared.core.inject.annotations.ConfigFile)1 ImpromptuPipeline (com.plotsquared.core.inject.annotations.ImpromptuPipeline)1 WorldConfig (com.plotsquared.core.inject.annotations.WorldConfig)1 WorldFile (com.plotsquared.core.inject.annotations.WorldFile)1 PlotListener (com.plotsquared.core.listener.PlotListener)1 EventDispatcher (com.plotsquared.core.util.EventDispatcher)1 WorldEdit (com.sk89q.worldedit.WorldEdit)1