From 675505e6fd47e231e43df32a153e66fde6576238 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Wed, 7 Nov 2012 11:39:59 +0100 Subject: [PATCH] Using PlayerLoginEvent instead of PlayerPreLoginEvent to fix a warning. --- .../factions/zcore/MPluginSecretPlayerListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java b/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java index 70942b61..c3acf52b 100644 --- a/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java +++ b/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java @@ -6,7 +6,7 @@ import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent; -import org.bukkit.event.player.PlayerPreLoginEvent; +import org.bukkit.event.player.PlayerLoginEvent; import com.massivecraft.factions.zcore.persist.EM; import com.massivecraft.factions.zcore.persist.Entity; @@ -48,13 +48,13 @@ public class MPluginSecretPlayerListener implements Listener } @EventHandler(priority = EventPriority.LOWEST) - public void onPlayerPreLogin(PlayerPreLoginEvent event) + public void onPlayerPreLogin(PlayerLoginEvent event) { for (EntityCollection ecoll : EM.class2Entities.values()) { if (ecoll instanceof PlayerEntityCollection) { - ecoll.get(event.getName()); + ecoll.get(event.getPlayer().getName()); } } }