public class OnePlotManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BORDER_RADIUS
The radius of the border around each plot.
|
static int |
PLOT_SIZE
The size in blocks for one-block plots.
|
private static org.bukkit.World |
WORLD
The world used for the one block gamemode.
|
Constructor and Description |
---|
OnePlotManager() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.Location |
getNextFreePlotLocation()
Gets the location of the next plot, that hasn't been claimed yet.
|
static org.bukkit.Location |
getPlotLocation(int plotIndex)
Gets the location of the plot with the given index.
|
static void |
setUpBorder(org.bukkit.entity.Player player)
Creates a world border around the plot for the given player.
|
public static final int PLOT_SIZE
public static final int BORDER_RADIUS
private static final org.bukkit.World WORLD
public static org.bukkit.Location getNextFreePlotLocation()
SeasonConfigurator.getLastTakenPlot(World)
,
SeasonConfigurator.setLastTakenPlot(World, int)
,
getPlotLocation(int)
public static org.bukkit.Location getPlotLocation(int plotIndex)
plotIndex
- The index of the plot.OnePlotCalculator.getPlotGridPosition(int)
public static void setUpBorder(org.bukkit.entity.Player player)
player
- The player to create the border for.