mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
placeholders now return null if the PlayerData isn't loaded.
This commit is contained in:
parent
4fdd4d18c9
commit
511662cbc6
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user