Deprecate old PlotFilter class

This commit is contained in:
Alexander Söderberg 2020-05-24 00:05:55 +02:00 committed by Alexander Söderberg
parent 6b31743fb3
commit 1aa144e47d
2 changed files with 7 additions and 2 deletions

View File

@ -895,8 +895,9 @@ public class PlotSquared {
* *
* @param filters the filter * @param filters the filter
* @return a filtered set of plots * @return a filtered set of plots
* @deprecated Use {@link PlotQuery}
*/ */
public Set<Plot> getPlots(final PlotFilter... filters) { @Deprecated public Set<Plot> getPlots(final PlotFilter... filters) {
final List<PlotArea> areas = new LinkedList<>(); final List<PlotArea> areas = new LinkedList<>();
for (final PlotArea plotArea : this.getPlotAreas()) { for (final PlotArea plotArea : this.getPlotAreas()) {
for (final PlotFilter filter : filters) { for (final PlotFilter filter : filters) {

View File

@ -25,7 +25,10 @@
*/ */
package com.plotsquared.core.plot; package com.plotsquared.core.plot;
public abstract class PlotFilter { /**
* Use {@link com.plotsquared.core.util.query.PlotQuery} instead
*/
@Deprecated public abstract class PlotFilter {
public boolean allowsArea(final PlotArea area) { public boolean allowsArea(final PlotArea area) {
return true; return true;
} }
@ -33,4 +36,5 @@ public abstract class PlotFilter {
public boolean allowsPlot(final Plot plot) { public boolean allowsPlot(final Plot plot) {
return true; return true;
} }
} }