Correction de bug d'affichage du MOTD dans la liste Multijoueur
This commit is contained in:
parent
2f2ad0974b
commit
af3a81ee43
@ -78,11 +78,11 @@ public class PacketOutServerInfoListener {
|
||||
list.add(new WrappedGameProfile("", "§cStaff connecté :"));
|
||||
for (Player p : plAdmin)
|
||||
{
|
||||
list.add(new WrappedGameProfile("", " - "+p.getDisplayName()));
|
||||
list.add(new WrappedGameProfile("", "§7 - "+p.getDisplayName()));
|
||||
}
|
||||
for (Player p : plModo)
|
||||
{
|
||||
list.add(new WrappedGameProfile("", " - "+p.getDisplayName()));
|
||||
list.add(new WrappedGameProfile("", "§7 - "+p.getDisplayName()));
|
||||
}
|
||||
}
|
||||
if (!plPlayer.isEmpty() || !plPlayerPremium.isEmpty() || !plPlayerUltimate.isEmpty())
|
||||
@ -91,21 +91,27 @@ public class PacketOutServerInfoListener {
|
||||
|
||||
for (Player p : plPlayerUltimate)
|
||||
{
|
||||
list.add(new WrappedGameProfile("", " - "+p.getDisplayName()));
|
||||
list.add(new WrappedGameProfile("", "§7 - "+p.getDisplayName()));
|
||||
}
|
||||
for (Player p : plPlayerPremium)
|
||||
{
|
||||
list.add(new WrappedGameProfile("", " - "+p.getDisplayName()));
|
||||
list.add(new WrappedGameProfile("", "§7 - "+p.getDisplayName()));
|
||||
}
|
||||
for (Player p : plPlayer)
|
||||
{
|
||||
list.add(new WrappedGameProfile("", " - "+p.getDisplayName()));
|
||||
list.add(new WrappedGameProfile("", "§7 - "+p.getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
event.getPacket().getServerPings().read(0).setPlayers(list);
|
||||
event.getPacket().getServerPings().read(0).setPlayersOnline(count_player);
|
||||
|
||||
|
||||
String motd = "§7Serveur §fPandacraft§f, §eVenez nous rejoindre :D\n§bCreatif§7, §6Survie§7 et §4Faction/PVP§7 !";
|
||||
|
||||
|
||||
event.getPacket().getServerPings().read(0).setMotD(motd);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user