!DURABILITY BAR

This commit is contained in:
Ethan 2021-03-29 01:04:43 -04:00 committed by Adam
parent 2fb3d69307
commit 61644a1b1f
2 changed files with 13 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import net.Indyuce.mmoitems.stat.CustomSounds;
import net.Indyuce.mmoitems.stat.DisableAdvancedEnchantments;
import net.Indyuce.mmoitems.stat.DisableDeathDrop;
import net.Indyuce.mmoitems.stat.DisplayName;
import net.Indyuce.mmoitems.stat.DurabilityBar;
import net.Indyuce.mmoitems.stat.DyeColor;
import net.Indyuce.mmoitems.stat.Effects;
import net.Indyuce.mmoitems.stat.Elements;
@ -100,6 +101,7 @@ public class ItemStats {
DURABILITY = new ItemDamage(),
CUSTOM_MODEL_DATA = new CustomModelData(),
MAX_DURABILITY = new MaximumDurability(),
DURABILITY_BAR = new DurabilityBar(),
WILL_BREAK = new LostWhenBroken(),
NAME = new DisplayName(),
LORE = new Lore(),

View File

@ -0,0 +1,11 @@
package net.Indyuce.mmoitems.stat;
import net.Indyuce.mmoitems.stat.type.BooleanStat;
import org.bukkit.Material;
public class DurabilityBar extends BooleanStat {
public DurabilityBar() {
super("DURABILITY_BAR", Material.DAMAGED_ANVIL, "Show Durability Bar",
new String[] { "Enable this to have the green bar", "show when using custom durability." }, new String[] { "!block", "all"});
}
}