From 20ea3cca17756eeab019d6b2ddb7a837c09ebb07 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Fri, 18 Sep 2015 18:52:16 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20choix=20de=20mise=20=C3=A0=20jour?= =?UTF-8?q?=20du=20displayName=20depuis=20les=20permissions=20dans=20OffPl?= =?UTF-8?q?ayer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/pandacraftutils/players/OffPlayer.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OffPlayer.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OffPlayer.java index 5214122..f5d9e25 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OffPlayer.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/players/OffPlayer.java @@ -115,11 +115,16 @@ public class OffPlayer { - + public String getDisplayName() { - Player p = getBukkitOnlinePlayer(); - if (p != null) - return p.getDisplayName(); + return getDisplayName(false); + } + public String getDisplayName(boolean forceRenew) { + if (!forceRenew) { + Player p = getBukkitOnlinePlayer(); + if (p != null) + return p.getDisplayName(); + } User essU = getEssentialsUser();