forked from Upstream/mmocore
added option to hide mana bar
(add 'display.mana: true' to config.yml)
This commit is contained in:
parent
e0fb1507ff
commit
836756b2d1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user