summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandhome.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-12-09 17:10:12 +0000
committerKHobbits <rob@khobbits.co.uk>2012-12-09 17:10:12 +0000
commit4f21490ec8f4d522433f070ad17ef158bc79cd7c (patch)
tree8c619eee352057bb073788bd7ee98b94105b42e1 /Essentials/src/com/earth2me/essentials/commands/Commandhome.java
parenta9ace1163f7cb94a6aab1f18350a5ffa4f022530 (diff)
downloadEssentials-4f21490ec8f4d522433f070ad17ef158bc79cd7c.tar
Essentials-4f21490ec8f4d522433f070ad17ef158bc79cd7c.tar.gz
Essentials-4f21490ec8f4d522433f070ad17ef158bc79cd7c.tar.lz
Essentials-4f21490ec8f4d522433f070ad17ef158bc79cd7c.tar.xz
Essentials-4f21490ec8f4d522433f070ad17ef158bc79cd7c.zip
Move null bed check to teleport code
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandhome.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhome.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java
index de6e1ea9b..293dbfb6d 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java
@@ -65,13 +65,7 @@ public class Commandhome extends EssentialsCommand
final List<String> homes = player.getHomes();
if (homes.isEmpty() && player.equals(user))
{
- if (bed != null)
- {
- user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
- throw new NoChargeException();
- }
user.getTeleport().respawn(charge, TeleportCause.COMMAND);
-
}
else if (homes.isEmpty())
{