diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PrivateMessagesManager.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PrivateMessagesManager.java
index 1e591a2..daf8ec9 100644
--- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PrivateMessagesManager.java
+++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/PrivateMessagesManager.java
@@ -438,7 +438,7 @@ public class PrivateMessagesManager extends BukkitRunnable {
String destAff = (message.getDestGroup() == null)?
new OffPlayer(message.getDestNick()).getDisplayName():
- "g:"+message.getDestGroupElement().getGroupName();
+ ChatColor.GOLD+"g:"+message.getDestGroupElement().getGroupName();
plugin.getServer().getConsoleSender().sendMessage("§6<§r"+senderAff+"§r§6 → §r"+destAff+"§r§6> §6"+ChatColor.translateAlternateColorCodes('&', message.getMessage()).replace("§r", "§r§6"));
@@ -492,16 +492,18 @@ public class PrivateMessagesManager extends BukkitRunnable {
*
* @param playerName le pseudo du joueur, insensible à la casse.
* @return Le statut du joueur passé en paramètre.
- * null
si le paramètre est null
.
+ * null
si le paramètre est null
ou si le pseudo est invalide.
*/
private PlayerStatut getPlayerStatut(String playerName) {
if (playerName == null)
return null;
if (!AbstractCommandExecutor.isValidPlayerName(playerName))
- return PlayerStatut.OFFLINE;
+ return null;
OnlinePlayer op = OnlinePlayerManager.get(playerName);
- if (op != null)
- return op.isAfk() ? PlayerStatut.AFK_IG : PlayerStatut.ONLINE_IG;
+ if (op != null) {
+ if (op.isAuthenticated() && !op.isVanished())
+ return op.isAfk() ? PlayerStatut.AFK_IG : PlayerStatut.ONLINE_IG;
+ }
try {
MPWebSessionElement webSession = ((MPWebSessionTable)ORM.getTable("mp_web_session")).getFirst("playerName LIKE '"+playerName+"'", null);