summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src/com
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
commit65776d6ed2a4bcdabcdf228da711699530d7dc1f (patch)
tree91a5f6385759102b6dce1aba82befb719dddd6c8 /EssentialsSpawn/src/com
parent0234c55ce3c9647644ffbebc8b8201c7264e89e8 (diff)
downloadEssentials-65776d6ed2a4bcdabcdf228da711699530d7dc1f.tar
Essentials-65776d6ed2a4bcdabcdf228da711699530d7dc1f.tar.gz
Essentials-65776d6ed2a4bcdabcdf228da711699530d7dc1f.tar.lz
Essentials-65776d6ed2a4bcdabcdf228da711699530d7dc1f.tar.xz
Essentials-65776d6ed2a4bcdabcdf228da711699530d7dc1f.zip
BedLocationFix for CraftBukkit
Diffstat (limited to 'EssentialsSpawn/src/com')
-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;
}