Mirror von
https://github.com/Moulberry/AxiomPaperPlugin.git
synchronisiert 2024-11-08 17:40:04 +01:00
PlotSquared: Change isPlotWorld logic to check for non-zero PlotArea count
Dieser Commit ist enthalten in:
Ursprung
0c05b3a46f
Commit
c027e56fc4
@ -128,16 +128,9 @@ public class PlotSquaredIntegrationImpl {
|
||||
return plotWorldCache.get(world);
|
||||
}
|
||||
|
||||
boolean isPlotWorld = false;
|
||||
|
||||
String worldName = world.getName();
|
||||
for (String plotWorld : PlotSquared.get().getPlotAreaManager().getAllWorlds()) {
|
||||
if (plotWorld.equals(worldName)) {
|
||||
isPlotWorld = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
PlotArea[] plotAreas = PlotSquared.get().getPlotAreaManager().getPlotAreas(worldName, null);
|
||||
boolean isPlotWorld = plotAreas.length > 0;
|
||||
plotWorldCache.put(world, isPlotWorld);
|
||||
return isPlotWorld;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren