Ajout du choix de mise à jour du displayName depuis les permissions dans OffPlayer

This commit is contained in:
Marc Baloup 2015-09-18 18:52:16 +02:00
parent ee175f6515
commit 20ea3cca17

View File

@ -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();