Search in sources :

Example 1 with PlotSettings

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

the class SinglePlotArea method adapt.

@SuppressWarnings("deprecation")
protected Plot adapt(Plot p) {
    if (p instanceof SinglePlot) {
        return p;
    }
    PlotSettings s = p.getSettings();
    final FlagContainer oldContainer = p.getFlagContainer();
    p = new SinglePlot(p.getId(), p.getOwnerAbs(), p.getTrusted(), p.getMembers(), p.getDenied(), s.getAlias(), s.getPosition(), null, this, s.getMerged(), p.getTimestamp(), p.temp);
    p.getFlagContainer().addAll(oldContainer);
    return p;
}
Also used : PlotSettings(com.plotsquared.core.plot.PlotSettings) FlagContainer(com.plotsquared.core.plot.flag.FlagContainer)

Aggregations

PlotSettings (com.plotsquared.core.plot.PlotSettings)1 FlagContainer (com.plotsquared.core.plot.flag.FlagContainer)1