diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-01-29 21:44:15 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-01-29 21:44:15 +0000 |
commit | 2f1d9ad82cae64b1012f4f105e98b01bfc0db5ee (patch) | |
tree | a7b9421a335a6621d574d7f6bdd1258bfa7bed99 | |
parent | a2418a68d919a959a4b3c4ccfaa66dd8d818bf6a (diff) | |
download | Essentials-2f1d9ad82cae64b1012f4f105e98b01bfc0db5ee.tar Essentials-2f1d9ad82cae64b1012f4f105e98b01bfc0db5ee.tar.gz Essentials-2f1d9ad82cae64b1012f4f105e98b01bfc0db5ee.tar.lz Essentials-2f1d9ad82cae64b1012f4f105e98b01bfc0db5ee.tar.xz Essentials-2f1d9ad82cae64b1012f4f105e98b01bfc0db5ee.zip |
Prevent /home bed, if the bed was later destroyed.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhome.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java index ebe57adf7..f14422efd 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java @@ -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(); |