summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-27 04:46:33 +0100
committersnowleo <schneeleo@gmail.com>2011-11-27 04:46:33 +0100
commitd5aa9d84e9166154f4bf9b0683e05b64cee9f46f (patch)
tree240d4fb6f59ef87e6d0a907597acbb05082f1034 /EssentialsSpawn
parent9881cd18166160b9fd6dab2f8b1cea7db9b0f1c5 (diff)
downloadEssentials-d5aa9d84e9166154f4bf9b0683e05b64cee9f46f.tar
Essentials-d5aa9d84e9166154f4bf9b0683e05b64cee9f46f.tar.gz
Essentials-d5aa9d84e9166154f4bf9b0683e05b64cee9f46f.tar.lz
Essentials-d5aa9d84e9166154f4bf9b0683e05b64cee9f46f.tar.xz
Essentials-d5aa9d84e9166154f4bf9b0683e05b64cee9f46f.zip
BedLocationFix for CraftBukkit
Diffstat (limited to 'EssentialsSpawn')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index 57b842c82..a14f8bb71 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -3,6 +3,7 @@ package com.earth2me.essentials.spawn;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.IEssentials;
import com.earth2me.essentials.User;
+import com.earth2me.essentials.craftbukkit.BedLocationFix;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.Location;
@@ -31,7 +32,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
Location home = user.getHome(user.getLocation());
if (home == null)
{
- home = user.getBedSpawnLocation();
+ home = BedLocationFix.getBedSpawnLocation(user);
}
if (home != null)
{
@@ -51,7 +52,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
{
final User user = ess.getUser(event.getPlayer());
- if (!user.isNew() || user.getBedSpawnLocation() != null)
+ if (!user.isNew() || BedLocationFix.getBedSpawnLocation(user) != null)
{
return;
}