To see how to use HUDs and GUIs API (Font Images) you can check my examples.
{% embed url="https://github.com/LoneDev6/API-ItemsAdder-Example-GUI" %}
{% embed url="https://github.com/LoneDev6/RPGhuds" %}
{% embed url="https://github.com/LoneDev6/API-ItemsAdder-Example-ServerMonitor" %}
PlayerHudsHolderWrapper huds = new PlayerHudsHolderWrapper(player);
PlayerQuantityHudWrapper manaHud =
new PlayerQuantityHudWrapper(huds, "magiccraft:mana_bar");
if(manaHud.exists())
manaHud.setFloatValue(2.0f);
else
System.out.println("Error: mana not found, maybe it's disabled.");
{% hint style="warning" %}
Make sure that you don't have the permission ia.user.hud.bypass.api.*
or setFloatValue
the code won't do anything.
{% endhint %}
{% content-ref url="../../plugin-usage/adding-content/font-images/common-errors.md" %} common-errors.md {% endcontent-ref %}
new FontImageWrapper("twitteremojis:confirm").getString()