mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 00:55:10 +02:00
Merge branch 'master' into release
This commit is contained in:
@@ -48,7 +48,7 @@ public class Commandhome extends EssentialsCommand
|
|||||||
if ("bed".equalsIgnoreCase(homeName))
|
if ("bed".equalsIgnoreCase(homeName))
|
||||||
{
|
{
|
||||||
final Location bed = player.getBedSpawnLocation();
|
final Location bed = player.getBedSpawnLocation();
|
||||||
if (bed != null)
|
if (bed != null && bed.getBlock().getType() == Material.BED_BLOCK)
|
||||||
{
|
{
|
||||||
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
||||||
throw new NoChargeException();
|
throw new NoChargeException();
|
||||||
|
Reference in New Issue
Block a user