WE unregistration + home/visit sorting + format

- WorldEdit listener unregistration for external masking/extent/async
worldedit management. (wink)
- Use the same listing for home and visit as previous behavior was
confusing.
This commit is contained in:
boy0001
2015-09-13 01:19:39 +10:00
parent c386f33df8
commit 1c28a72f9c
28 changed files with 490 additions and 465 deletions

View File

@ -144,29 +144,31 @@ public class Plot
{
this.world = world;
this.id = id;
this.owner = owner;
this.owner = owner;
}
/**
/**
* Return a new/cached plot object at a given world/plot id
*
*
* @see MainUtil#getPlotSelectionOwned(String world, PlotId bottom, PlotId top) return a list of owned plots between (inclusive) two plot ids.
*
* @param world
* @param id
* @return
* @return
*/
public static Plot getPlot(final String world, final PlotId id)
{
return MainUtil.getPlot(world, id);
return MainUtil.getPlot(world, id);
}
/**
/**
* Return a new/cached plot object at a given location
*
*
* @see PlotPlayer#getCurrentPlot() if a player is expected here.
*
* @param loc
* @return
* @return
*/
public static Plot getPlot(final Location loc)
{
return MainUtil.getPlot(loc);
@ -192,7 +194,7 @@ public class Plot
this.temp = temp;
}
/**
/**
* Constructor for a saved plots (Used by the database manager when plots are fetched)
*
* @see MainUtil#getPlot(String, PlotId) for existing plots
@ -793,7 +795,7 @@ public class Plot
}
/**
* Register a plot and create it in the database<br>
* Register a plot and create it in the database<br>
* - The plot will not be created if the owner is null<br>
* - Any setting from before plot creation will not be saved until the server is stopped properly. i.e. Set any values/options after plot creation.
* @return true if plot was created successfully

View File

@ -120,11 +120,11 @@ public abstract class PlotPlayer implements CommandCaller
return MainUtil.getAllowedPlots(this);
}
/**
* Get the number of plots the player owns
/**
* Get the number of plots the player owns
*
* @see #getPlotCount(String);
* @see #getPlots()
* @see #getPlots()
*
* @return number of plots within the scope (globally, or in the player's current world as defined in the settings.yml)
*/