From 8a8be6a1bdada3a168842e2d3015c567235a1dca Mon Sep 17 00:00:00 2001 From: ASangarin Date: Tue, 29 Sep 2020 01:57:28 +0200 Subject: [PATCH] Added new mana placeholders (check the wiki) --- .../Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java index 8f58bc81..d92fb2a0 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java +++ b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java @@ -45,6 +45,11 @@ public class RPGPlaceholders extends PlaceholderExpansion { @Override public String onRequest(@Nullable OfflinePlayer player, @NotNull String identifier) { + if(identifier.equals("mana_icon")) + return PlayerData.get(player).getProfess().getManaDisplay().getIcon(); + if(identifier.equals("mana_name")) + return PlayerData.get(player).getProfess().getManaDisplay().getName(); + if (identifier.equals("level")) return "" + PlayerData.get(player).getLevel();