Search in sources :

Example 1 with PlotAreaManager

use of com.plotsquared.core.plot.world.PlotAreaManager in project PlotSquared by IntellectualSites.

the class SingleWorldListener method handle.

private void handle(ChunkEvent event) {
    World world = event.getWorld();
    String name = world.getName();
    PlotAreaManager man = PlotSquared.get().getPlotAreaManager();
    if (!(man instanceof SinglePlotAreaManager)) {
        return;
    }
    if (!SinglePlotArea.isSinglePlotWorld(name)) {
        return;
    }
    markChunkAsClean(event.getChunk());
}
Also used : PlotAreaManager(com.plotsquared.core.plot.world.PlotAreaManager) SinglePlotAreaManager(com.plotsquared.core.plot.world.SinglePlotAreaManager) SinglePlotAreaManager(com.plotsquared.core.plot.world.SinglePlotAreaManager) World(org.bukkit.World)

Aggregations

PlotAreaManager (com.plotsquared.core.plot.world.PlotAreaManager)1 SinglePlotAreaManager (com.plotsquared.core.plot.world.SinglePlotAreaManager)1 World (org.bukkit.World)1