mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-25 17:08:32 +01:00
Fixed plugin.yml
This commit is contained in:
parent
b58b6f5963
commit
9bca812d28
@ -308,15 +308,18 @@ 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()) {
|
||||
if (plot.hasOwner()) {
|
||||
if (plot.getOwner().equals(uuid)) {
|
||||
myplots.add(plot);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user