mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
Prevent /home bed, if the bed was later destroyed.
This commit is contained in:
parent
a2418a68d9
commit
2f1d9ad82c
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ public class Commandhome extends EssentialsCommand
|
|||
if ("bed".equalsIgnoreCase(homeName))
|
||||
{
|
||||
final Location bed = player.getBedSpawnLocation();
|
||||
if (bed != null)
|
||||
if (bed != null && bed.getBlock().getType() == Material.BED_BLOCK)
|
||||
{
|
||||
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
||||
throw new NoChargeException();
|
||||
|
|
Loading…
Reference in a new issue