From 9b77a5f8ddc9335f7c6abbf971aeb320ab981572 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Fri, 2 Jan 2015 11:52:13 -0500 Subject: [PATCH] Meilleur affichage du message de logout dans la console du serveur --- .../pandacraftutils/login_message/LoginLogoutManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;