diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OnlinePlayerManager.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OnlinePlayerManager.java index a70b490..86b9fa1 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OnlinePlayerManager.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OnlinePlayerManager.java @@ -10,6 +10,7 @@ import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerQuitEvent; @@ -56,13 +57,13 @@ public final class OnlinePlayerManager implements Listener { // ---------------------------------------- // -------------- Evènements -------------- // ---------------------------------------- - @EventHandler + @EventHandler(priority=EventPriority.LOWEST) public void onPlayerJoin (PlayerJoinEvent event) { players.put(event.getPlayer(), new OnlinePlayer(event.getPlayer())); } - @EventHandler + @EventHandler(priority=EventPriority.HIGHEST) public void onPlayerQuit (PlayerQuitEvent event) { players.remove(event.getPlayer());