*/
private void updatePlayerNameListForPlayersOnLogin(final Player playerToNotifyAbout) {
SingletonRepository.getRuleProcessor().getOnlinePlayers().forAllPlayersExecute(new Task<Player>() {
public void execute(final Player player) {
if(playerToNotifyAbout.isGhost()) {
playerToNotifyAbout.addEvent(new PlayerLoggedOnEvent(player.getName()));
if (player.isGhost()) {
player.addEvent(new PlayerLoggedOnEvent(playerToNotifyAbout.getName()));
}
} else {
player.addEvent(new PlayerLoggedOnEvent(playerToNotifyAbout.getName()));
if (!player.isGhost()) {
playerToNotifyAbout.addEvent(new PlayerLoggedOnEvent(player.getName()));
}
}
}
});
}