From af3a81ee43ae6ba8337f5ec8a0e6edd8fa8a1c13 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sat, 24 Jan 2015 01:08:59 -0500 Subject: [PATCH] Correction de bug d'affichage du MOTD dans la liste Multijoueur --- .../modules/PacketOutServerInfoListener.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PacketOutServerInfoListener.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PacketOutServerInfoListener.java index ec06bc6..ba9422c 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PacketOutServerInfoListener.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PacketOutServerInfoListener.java @@ -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); } } );