mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fix you are not in a plot area for single plot worlds
This commit is contained in:
parent
d571f54c65
commit
97903f3870
@ -70,13 +70,12 @@ public class SinglePlotAreaManager extends DefaultPlotAreaManager {
|
|||||||
|
|
||||||
@Override public PlotArea getApplicablePlotArea(Location location) {
|
@Override public PlotArea getApplicablePlotArea(Location location) {
|
||||||
PlotArea found = super.getApplicablePlotArea(location);
|
PlotArea found = super.getApplicablePlotArea(location);
|
||||||
if (found != null) {
|
if (found != null)
|
||||||
return found;
|
return found;
|
||||||
}
|
|
||||||
String world = location.getWorld();
|
String world = location.getWorld();
|
||||||
return isWorld(world) || world.equals("*") ?
|
return isWorld(world) || world.equals("*") || super.getAllPlotAreas().length == 0 ?
|
||||||
area :
|
area :
|
||||||
super.getApplicablePlotArea(location);
|
null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public PlotArea getPlotArea(String world, String id) {
|
@Override public PlotArea getPlotArea(String world, String id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user