added option to hide mana bar

(add 'display.mana: true' to config.yml)
This commit is contained in:
Aria 2019-10-18 02:22:20 +02:00
parent e0fb1507ff
commit 836756b2d1

View File

@ -502,7 +502,7 @@ public class PlayerData {
public void giveMana(double amount) {
if (mana != (mana = Math.max(0, Math.min(getStats().getStat(StatType.MAX_MANA), mana + amount))))
displayMana();
if(MMOCore.plugin.getConfig().getBoolean("display.mana")) displayMana();
}
public void giveStamina(double amount) {