Some additional JavaDoc's (PlotMain.class)

Added option to teleport to road on login
This commit is contained in:
Sauilitired 2014-11-20 19:29:05 +01:00
parent 7b83ea2413
commit ef7e021937
6 changed files with 113 additions and 33 deletions

View file

@ -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