if (player.getRestartPoint() != null)
{
return player.getRestartPoint();
}
}
RestartArea ra = MapRegionManager.getInstance().getRegionData(RestartArea.class, from);
if (ra != null)
{
RestartPoint rp = ra.getRestartPoint().get(player.getRace());
Location restartPoint = Rnd.get(rp.getRestartPoints());
Location PKrestartPoint = Rnd.get(rp.getPKrestartPoints());
return player.isChaotic() ? PKrestartPoint : restartPoint;
}
_log.warn("Cannot find restart location from coordinates: " + from + "!");