Colorisation des messages AFK
This commit is contained in:
parent
97be575fa2
commit
bf48b5ca97
@ -2,6 +2,7 @@ package net.mc_pandacraft.java.plugin.pandacraftutils.afk;
|
|||||||
|
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.plugin_interface.EssentialsInterface;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.plugin_interface.EssentialsInterface;
|
||||||
|
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class AfkPlayer {
|
public class AfkPlayer {
|
||||||
@ -34,9 +35,9 @@ public class AfkPlayer {
|
|||||||
|
|
||||||
// affichage du message
|
// affichage du message
|
||||||
if (afk)
|
if (afk)
|
||||||
message = player.getDisplayName()+"§r est désormais AFK.";
|
message = player.getDisplayName()+ChatColor.YELLOW+" est désormais AFK.";
|
||||||
else
|
else
|
||||||
message = player.getDisplayName()+"§r n'est plus AFK.";
|
message = player.getDisplayName()+ChatColor.YELLOW+" n'est plus AFK.";
|
||||||
player.getServer().broadcastMessage(message);
|
player.getServer().broadcastMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user