mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Load plots with no settings.
This commit is contained in:
		@@ -1464,7 +1464,7 @@ public class SQLManager implements AbstractDB {
 | 
			
		||||
                                plot.getSettings().ratings = new HashMap<UUID, Integer>();
 | 
			
		||||
                            }
 | 
			
		||||
                            plot.getSettings().ratings.put(user, r.getInt("rating"));
 | 
			
		||||
                        } else {
 | 
			
		||||
                        } else {
 | 
			
		||||
                            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 {
 | 
			
		||||
                stmt.close();
 | 
			
		||||
            }
 | 
			
		||||
            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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user