Fixed plugin.yml

This commit is contained in:
boy0001 2015-01-02 12:35:47 +11:00
parent b58b6f5963
commit 9bca812d28
4 changed files with 13 additions and 7 deletions

View File

@ -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);
}
} }
} }
} }

View File

@ -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)

View File

@ -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);
} }

View File

@ -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: