mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixed plugin.yml
This commit is contained in:
		@@ -308,15 +308,18 @@ import java.util.concurrent.TimeUnit;
 | 
				
			|||||||
     * @param player player
 | 
					     * @param player player
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return Set Containing the players plots
 | 
					     * @return Set Containing the players plots
 | 
				
			||||||
 | 
					     *  - ignores non plot worlds
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public static Set<Plot> getPlots(final Player player) {
 | 
					    public static Set<Plot> getPlots(final Player player) {
 | 
				
			||||||
        final UUID uuid = UUIDHandler.getUUID(player);
 | 
					        final UUID uuid = UUIDHandler.getUUID(player);
 | 
				
			||||||
        final ArrayList<Plot> myplots = new ArrayList<>();
 | 
					        final ArrayList<Plot> myplots = new ArrayList<>();
 | 
				
			||||||
        for (final HashMap<PlotId, Plot> world : plots.values()) {
 | 
					        for (final String world : plots.keySet()) {
 | 
				
			||||||
            for (final Plot plot : world.values()) {
 | 
					            if (isPlotWorld(world)) {
 | 
				
			||||||
                if (plot.hasOwner()) {
 | 
					                for (final Plot plot : plots.get(world).values()) {
 | 
				
			||||||
                    if (plot.getOwner().equals(uuid)) {
 | 
					                    if (plot.hasOwner()) {
 | 
				
			||||||
                        myplots.add(plot);
 | 
					                        if (plot.getOwner().equals(uuid)) {
 | 
				
			||||||
 | 
					                            myplots.add(plot);
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,7 +51,7 @@ public class HybridGen extends PlotGenerator {
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Set to static to re-use the same managet for all Default World Generators
 | 
					     * Set to static to re-use the same managet for all Default World Generators
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    private static PlotManager manager = null;
 | 
					    private PlotManager manager = null;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Some generator specific variables (implementation dependent)
 | 
					     * Some generator specific variables (implementation dependent)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1037,6 +1037,9 @@ import java.util.UUID;
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        final PlotWorld plotworld = PlotMain.getWorldSettings(world);
 | 
					        final PlotWorld plotworld = PlotMain.getWorldSettings(world);
 | 
				
			||||||
        final PlotManager manager = PlotMain.getPlotManager(world);
 | 
					        final PlotManager manager = PlotMain.getPlotManager(world);
 | 
				
			||||||
 | 
					        System.out.print("WORLD = "+(world));
 | 
				
			||||||
 | 
					        System.out.print("MANAGER = "+(manager == null));
 | 
				
			||||||
 | 
					        System.out.print("PLOTWORLD = "+(plotworld == null));
 | 
				
			||||||
        return manager.getPlotBottomLocAbs(plotworld, id);
 | 
					        return manager.getPlotBottomLocAbs(plotworld, id);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@ load: STARTUP
 | 
				
			|||||||
description: >
 | 
					description: >
 | 
				
			||||||
             Easy, yet powerful Plot World generation and management.
 | 
					             Easy, yet powerful Plot World generation and management.
 | 
				
			||||||
authors: [Citymonstret, Empire92]
 | 
					authors: [Citymonstret, Empire92]
 | 
				
			||||||
softdepend: [WorldEdit, BarAPI, PlotMe, CameraAPI]
 | 
					softdepend: [WorldEdit, BarAPI, PlotMe, CameraAPI, Vault]
 | 
				
			||||||
database: false
 | 
					database: false
 | 
				
			||||||
commands:
 | 
					commands:
 | 
				
			||||||
  plots:
 | 
					  plots:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user