mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
Deprecate old PlotFilter class
This commit is contained in:
parent
6b31743fb3
commit
1aa144e47d
@ -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) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user