Meilleur affichage du message de logout dans la console du serveur
This commit is contained in:
parent
d9f6f02c90
commit
9b77a5f8dd
@ -48,13 +48,13 @@ public class LoginLogoutManager implements Listener {
|
|||||||
if (!isPlayerLoggedIn(event.getPlayer()))
|
if (!isPlayerLoggedIn(event.getPlayer()))
|
||||||
return;
|
return;
|
||||||
loggedInPlayer.remove(event.getPlayer());
|
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<Player> getLoggedInPlayer() { return loggedInPlayer; }
|
public List<Player> getLoggedInPlayers() { return loggedInPlayer; }
|
||||||
|
|
||||||
public List<Player> getLoggedOutPlayer() {
|
public List<Player> getLoggedOutPlayers() {
|
||||||
List<Player> players = new ArrayList<Player>(Arrays.asList(plugin.getServer().getOnlinePlayers()));
|
List<Player> players = new ArrayList<Player>(Arrays.asList(plugin.getServer().getOnlinePlayers()));
|
||||||
players.removeAll(loggedInPlayer);
|
players.removeAll(loggedInPlayer);
|
||||||
return players;
|
return players;
|
||||||
|
Loading…
Reference in New Issue
Block a user