mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 20:42:55 +00:00
Some additional JavaDoc's (PlotMain.class)
Added option to teleport to road on login
This commit is contained in:
parent
7b83ea2413
commit
ef7e021937
6 changed files with 113 additions and 33 deletions
|
@ -856,6 +856,17 @@ public class PlotHelper {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the location of the default plot home position
|
||||
* @param plot Plot
|
||||
* @return the location
|
||||
*/
|
||||
public static Location getPlotHomeDefault(final Plot plot) {
|
||||
final Location l = getPlotBottomLoc(plot.getWorld(), plot.getId()).subtract(0, 0, 0);
|
||||
l.setY(getHeighestBlock(plot.getWorld(), l.getBlockX(), l.getBlockZ()));
|
||||
return l;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the plot home
|
||||
* @param w World
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue