From 517853fb73b2fb21d08c03a3b8d99cc98ff5abc7 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 13 Apr 2014 01:01:49 +0100 Subject: Converted emulated player class calls to use base class. --- .../com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'EssentialsSpawn') 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; } -- cgit v1.2.3