summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-04-13 01:01:49 +0100
committerKHobbits <rob@khobbits.co.uk>2014-04-13 01:01:49 +0100
commit517853fb73b2fb21d08c03a3b8d99cc98ff5abc7 (patch)
tree7913570f9c78d1e74d6ad224978df835d6f51404 /EssentialsSpawn
parentfec02fee517956f124f9e3224bc7cab844ccc51c (diff)
downloadEssentials-517853fb73b2fb21d08c03a3b8d99cc98ff5abc7.tar
Essentials-517853fb73b2fb21d08c03a3b8d99cc98ff5abc7.tar.gz
Essentials-517853fb73b2fb21d08c03a3b8d99cc98ff5abc7.tar.lz
Essentials-517853fb73b2fb21d08c03a3b8d99cc98ff5abc7.tar.xz
Essentials-517853fb73b2fb21d08c03a3b8d99cc98ff5abc7.zip
Converted emulated player class calls to use base class.
Diffstat (limited to 'EssentialsSpawn')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index e5611b494..648ba33e3 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -47,7 +47,7 @@ public class EssentialsSpawnPlayerListener implements Listener
if (ess.getSettings().getRespawnAtHome())
{
Location home;
- final Location bed = user.getBedSpawnLocation();
+ final Location bed = user.getBase().getBedSpawnLocation();
if (bed != null)
{
home = bed;
@@ -101,7 +101,7 @@ public class EssentialsSpawnPlayerListener implements Listener
@Override
public void run()
{
- if (!user.isOnline()) {
+ if (!user.getBase().isOnline()) {
return;
}