From fd2e4a03cec2ec4892f37fea411d5387f36c0b3c Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 19 Jun 2014 04:02:15 +0100 Subject: Reduce a few nickname refresh calls. --- .../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 648ba33e3..67ef6c28e 100644 --- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java +++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java @@ -134,7 +134,7 @@ public class EssentialsSpawnPlayerListener implements Listener LOGGER.log(Level.FINE, "New player join"); } - }); + }, 2L); } @@ -150,7 +150,7 @@ public class EssentialsSpawnPlayerListener implements Listener @Override public void run() { - if (user.getBase() instanceof OfflinePlayer) + if (user.getBase() instanceof OfflinePlayer || !user.getBase().isOnline()) { return; } -- cgit v1.2.3