forked from Upstream/mmocore
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3a637d9144
@ -44,8 +44,10 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
|||||||
@SuppressWarnings("DuplicateExpressions")
|
@SuppressWarnings("DuplicateExpressions")
|
||||||
@Override
|
@Override
|
||||||
public String onRequest(OfflinePlayer player, String identifier) {
|
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"))
|
if (identifier.equals("mana_icon"))
|
||||||
return playerData.getProfess().getManaDisplay().getIcon();
|
return playerData.getProfess().getManaDisplay().getIcon();
|
||||||
if (identifier.equals("mana_name"))
|
if (identifier.equals("mana_name"))
|
||||||
|
Loading…
Reference in New Issue
Block a user