Ajout du choix de mise à jour du displayName depuis les permissions dans OffPlayer
This commit is contained in:
parent
ee175f6515
commit
20ea3cca17
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user