diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/login_message/LoginLogoutManager.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/login_message/LoginLogoutManager.java index c60c4b8..17d2e75 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/login_message/LoginLogoutManager.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/login_message/LoginLogoutManager.java @@ -48,13 +48,13 @@ public class LoginLogoutManager implements Listener { if (!isPlayerLoggedIn(event.getPlayer())) return; loggedInPlayer.remove(event.getPlayer()); - event.setQuitMessage(ChatColor.YELLOW+event.getPlayer().getDisplayName()+ChatColor.YELLOW+" a quitté le jeu"); + plugin.getServer().broadcastMessage(ChatColor.YELLOW+event.getPlayer().getDisplayName()+ChatColor.YELLOW+" a quitté le jeu"); } - public List getLoggedInPlayer() { return loggedInPlayer; } + public List getLoggedInPlayers() { return loggedInPlayer; } - public List getLoggedOutPlayer() { + public List getLoggedOutPlayers() { List players = new ArrayList(Arrays.asList(plugin.getServer().getOnlinePlayers())); players.removeAll(loggedInPlayer); return players;