mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
*
This commit is contained in:
parent
0d608245f5
commit
8b6cc7a193
@ -231,7 +231,7 @@ public class Auto extends SubCommand {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void autoClaimFromDatabase(final PlotPlayer player, final PlotArea area, PlotId start, final RunnableVal<Plot> whenDone) {
|
public static void autoClaimFromDatabase(final PlotPlayer player, final PlotArea area, PlotId start, final RunnableVal<Plot> whenDone) {
|
||||||
final Plot plot = area.getNextFreePlot(player, start);
|
final Plot plot = area.getNextFreePlot(player, start);
|
||||||
if (plot == null) {
|
if (plot == null) {
|
||||||
whenDone.run(null);
|
whenDone.run(null);
|
||||||
|
@ -1147,10 +1147,8 @@ public class Plot {
|
|||||||
public Location getHome() {
|
public Location getHome() {
|
||||||
BlockLoc home = this.getPosition();
|
BlockLoc home = this.getPosition();
|
||||||
if (home == null || home.x == 0 && home.z == 0) {
|
if (home == null || home.x == 0 && home.z == 0) {
|
||||||
System.out.println("Default");
|
|
||||||
return this.getDefaultHome(true);
|
return this.getDefaultHome(true);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Custom");
|
|
||||||
Location bot = this.getBottomAbs();
|
Location bot = this.getBottomAbs();
|
||||||
Location loc = new Location(bot.getWorld(), bot.getX() + home.x, bot.getY() + home.y, bot.getZ() + home.z, home.yaw, home.pitch);
|
Location loc = new Location(bot.getWorld(), bot.getX() + home.x, bot.getY() + home.y, bot.getZ() + home.z, home.yaw, home.pitch);
|
||||||
if (!isLoaded()) return loc;
|
if (!isLoaded()) return loc;
|
||||||
|
Loading…
Reference in New Issue
Block a user