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,12 +308,14 @@ import java.util.concurrent.TimeUnit;
* @param player player
*
* @return Set Containing the players plots
* - ignores non plot worlds
*/
public static Set<Plot> getPlots(final Player player) {
final UUID uuid = UUIDHandler.getUUID(player);
final ArrayList<Plot> myplots = new ArrayList<>();
for (final HashMap<PlotId, Plot> world : plots.values()) {
for (final Plot plot : world.values()) {
for (final String world : plots.keySet()) {
if (isPlotWorld(world)) {
for (final Plot plot : plots.get(world).values()) {
if (plot.hasOwner()) {
if (plot.getOwner().equals(uuid)) {
myplots.add(plot);
@ -321,6 +323,7 @@ import java.util.concurrent.TimeUnit;
}
}
}
}
return new HashSet<>(myplots);
}

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
*/
private static PlotManager manager = null;
private PlotManager manager = null;
/**
* Some generator specific variables (implementation dependent)

View File

@ -1037,6 +1037,9 @@ import java.util.UUID;
}
final PlotWorld plotworld = PlotMain.getWorldSettings(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);
}

View File

@ -5,7 +5,7 @@ load: STARTUP
description: >
Easy, yet powerful Plot World generation and management.
authors: [Citymonstret, Empire92]
softdepend: [WorldEdit, BarAPI, PlotMe, CameraAPI]
softdepend: [WorldEdit, BarAPI, PlotMe, CameraAPI, Vault]
database: false
commands:
plots: