mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Load plots with no settings.
This commit is contained in:
parent
bb32507841
commit
0273a4614b
@ -1464,7 +1464,7 @@ public class SQLManager implements AbstractDB {
|
||||
}
|
||||
plot.getSettings().ratings.put(user, r.getInt("rating"));
|
||||
} else {
|
||||
PS.debug("&cPLOT " + id + " in plot_helpers does not exist. Please create the plot or remove this entry.");
|
||||
PS.debug("&cPLOT " + id + " in plot_rating does not exist. Please create the plot or remove this entry.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1617,6 +1617,16 @@ public class SQLManager implements AbstractDB {
|
||||
}
|
||||
if (plots.entrySet().size() > 0) {
|
||||
createEmptySettings(new ArrayList<Integer>(plots.keySet()), null);
|
||||
for (Entry<Integer, Plot> entry : plots.entrySet()) {
|
||||
Plot plot = entry.getValue();
|
||||
plot.getSettings();
|
||||
ConcurrentHashMap<PlotId, Plot> map = newplots.get(plot.world);
|
||||
if (map == null) {
|
||||
map = new ConcurrentHashMap<PlotId, Plot>();
|
||||
newplots.put(plot.world, map);
|
||||
}
|
||||
newplots.get(plot.world).put(plot.id, plot);
|
||||
}
|
||||
}
|
||||
boolean invalidPlot = false;
|
||||
for (final Entry<String, Integer> entry : noExist.entrySet()) {
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user