From bf48b5ca97d0519261cbcee78b32c475e134d4b9 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sat, 17 Jan 2015 23:11:05 -0500 Subject: [PATCH] Colorisation des messages AFK --- .../java/plugin/pandacraftutils/afk/AfkPlayer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/afk/AfkPlayer.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/afk/AfkPlayer.java index 942f507..daa93ad 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/afk/AfkPlayer.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/afk/AfkPlayer.java @@ -2,6 +2,7 @@ package net.mc_pandacraft.java.plugin.pandacraftutils.afk; import net.mc_pandacraft.java.plugin.pandacraftutils.plugin_interface.EssentialsInterface; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; public class AfkPlayer { @@ -34,9 +35,9 @@ public class AfkPlayer { // affichage du message if (afk) - message = player.getDisplayName()+"§r est désormais AFK."; + message = player.getDisplayName()+ChatColor.YELLOW+" est désormais AFK."; else - message = player.getDisplayName()+"§r n'est plus AFK."; + message = player.getDisplayName()+ChatColor.YELLOW+" n'est plus AFK."; player.getServer().broadcastMessage(message); }