mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-28 00:55:29 +01:00
Added new mana placeholders (check the wiki)
This commit is contained in:
parent
ee7970edaa
commit
8a8be6a1bd
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user