mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 13:36:31 +00:00
Home confirmation when using a bed.
This commit is contained in:
parent
9b731cc39c
commit
deca5e5e73
1 changed files with 3 additions and 1 deletions
|
@ -342,7 +342,9 @@ public class EssentialsPlayerListener implements Listener
|
||||||
case RIGHT_CLICK_BLOCK:
|
case RIGHT_CLICK_BLOCK:
|
||||||
if (!event.isCancelled() && event.getClickedBlock().getTypeId() == BED && ess.getSettings().getUpdateBedAtDaytime())
|
if (!event.isCancelled() && event.getClickedBlock().getTypeId() == BED && ess.getSettings().getUpdateBedAtDaytime())
|
||||||
{
|
{
|
||||||
event.getPlayer().setBedSpawnLocation(event.getClickedBlock().getLocation());
|
Player player = event.getPlayer();
|
||||||
|
player.setBedSpawnLocation(event.getClickedBlock().getLocation());
|
||||||
|
player.sendMessage(_("homeSet", player.getLocation().getWorld().getName(), player.getLocation().getBlockX(), player.getLocation().getBlockY(), player.getLocation().getBlockZ()));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LEFT_CLICK_AIR:
|
case LEFT_CLICK_AIR:
|
||||||
|
|
Loading…
Reference in a new issue