summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src/com
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-27 06:00:58 +0100
committersnowleo <schneeleo@gmail.com>2011-11-27 06:01:41 +0100
commite8cd89f788f6612adea471447e1c2ef8b769c0c0 (patch)
tree060d0afdce1c85ab0873cb6df695e9e92c9ff6cc /EssentialsSpawn/src/com
parent3e9d2f19fb8e94d4c66bd21f860ccc74a7e29659 (diff)
downloadEssentials-e8cd89f788f6612adea471447e1c2ef8b769c0c0.tar
Essentials-e8cd89f788f6612adea471447e1c2ef8b769c0c0.tar.gz
Essentials-e8cd89f788f6612adea471447e1c2ef8b769c0c0.tar.lz
Essentials-e8cd89f788f6612adea471447e1c2ef8b769c0c0.tar.xz
Essentials-e8cd89f788f6612adea471447e1c2ef8b769c0c0.zip
CB#1518 B#1042
Support for Enchantments & Removed broken BedFix (in cb now)
Diffstat (limited to 'EssentialsSpawn/src/com')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index a14f8bb71..57b842c82 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -3,7 +3,6 @@ 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;
@@ -32,7 +31,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
Location home = user.getHome(user.getLocation());
if (home == null)
{
- home = BedLocationFix.getBedSpawnLocation(user);
+ home = user.getBedSpawnLocation();
}
if (home != null)
{
@@ -52,7 +51,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
{
final User user = ess.getUser(event.getPlayer());
- if (!user.isNew() || BedLocationFix.getBedSpawnLocation(user) != null)
+ if (!user.isNew() || user.getBedSpawnLocation() != null)
{
return;
}