mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fixes #1015
This commit is contained in:
parent
d9c0ec27b0
commit
c2e48bb95b
@ -44,9 +44,12 @@ public class SetHome extends SetCommand {
|
|||||||
case "unset":
|
case "unset":
|
||||||
case "remove":
|
case "remove":
|
||||||
case "none": {
|
case "none": {
|
||||||
plot.getBasePlot(false).setHome(null);
|
Plot base = plot.getBasePlot(false);
|
||||||
MainUtil.sendMessage(plr, C.POSITION_UNSET);
|
Location bot = base.getBottomAbs();
|
||||||
return true;
|
Location defaultHome = base.getDefaultHome();
|
||||||
|
BlockLoc bLoc = new BlockLoc(defaultHome.getX() - bot.getX(), defaultHome.getY(), defaultHome.getZ() - bot.getZ(), defaultHome.getYaw(), defaultHome.getPitch());
|
||||||
|
base.setHome(bLoc);
|
||||||
|
return MainUtil.sendMessage(plr, C.POSITION_UNSET);
|
||||||
}
|
}
|
||||||
case "": {
|
case "": {
|
||||||
Plot base = plot.getBasePlot(false);
|
Plot base = plot.getBasePlot(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user