Merge remote-tracking branch 'origin/master'

This commit is contained in:
Indyuce 2021-11-28 10:50:24 +01:00
commit 3a637d9144

View File

@ -44,8 +44,10 @@ public class RPGPlaceholders extends PlaceholderExpansion {
@SuppressWarnings("DuplicateExpressions")
@Override
public String onRequest(OfflinePlayer player, String identifier) {
PlayerData playerData = PlayerData.get(player);
if (!PlayerData.has(player.getUniqueId()))
return null;
PlayerData playerData = PlayerData.get(player);
if (identifier.equals("mana_icon"))
return playerData.getProfess().getManaDisplay().getIcon();
if (identifier.equals("mana_name"))