From 25cf3b5bbc09fdf81197d1da821dd14e90106de0 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Thu, 8 Nov 2012 00:07:53 -0600 Subject: [PATCH] Update deprecated PlayerPreLoginEvent to PlayerLoginEvent; backported from main branch --- .../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()); } } }