mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-08 13:33:11 +00:00
Extended functionality of purge
This commit is contained in:
parent
941b3d8c42
commit
39ae80cb65
7 changed files with 154 additions and 172 deletions
|
@ -337,6 +337,16 @@ import java.util.concurrent.TimeUnit;
|
|||
*/
|
||||
public static Set<Plot> getPlots(final World world, final Player player) {
|
||||
final UUID uuid = UUIDHandler.getUUID(player);
|
||||
return getPlots(world, uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param world plot world
|
||||
* @param player plot owner
|
||||
*
|
||||
* @return players plots
|
||||
*/
|
||||
public static Set<Plot> getPlots(final World world, final UUID uuid) {
|
||||
final ArrayList<Plot> myplots = new ArrayList<>();
|
||||
for (final Plot plot : getPlots(world).values()) {
|
||||
if (plot.hasOwner()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue