diff --git a/pom.xml b/pom.xml index 56b17901..a9da69a2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.Indyuce MMOItems - 6.5.5 + 6.5.6-SNAPSHOT MMOItems A great item solution for your RPG server! diff --git a/src/main/java/net/Indyuce/mmoitems/api/item/build/ItemStackBuilder.java b/src/main/java/net/Indyuce/mmoitems/api/item/build/ItemStackBuilder.java index 8b3f96ac..ba090a89 100644 --- a/src/main/java/net/Indyuce/mmoitems/api/item/build/ItemStackBuilder.java +++ b/src/main/java/net/Indyuce/mmoitems/api/item/build/ItemStackBuilder.java @@ -16,9 +16,6 @@ import net.Indyuce.mmoitems.stat.type.ItemStat; import net.Indyuce.mmoitems.stat.type.StatHistory; import org.bukkit.ChatColor; import org.bukkit.Material; -import org.bukkit.attribute.Attribute; -import org.bukkit.attribute.AttributeModifier; -import org.bukkit.attribute.AttributeModifier.Operation; import org.bukkit.inventory.ItemFlag; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; @@ -26,7 +23,6 @@ import org.bukkit.inventory.meta.ItemMeta; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.UUID; import java.util.logging.Level; public class ItemStackBuilder { @@ -37,9 +33,6 @@ public class ItemStackBuilder { private final LoreBuilder lore; private final List tags = new ArrayList<>(); - private static final AttributeModifier fakeModifier = new AttributeModifier( - UUID.fromString("87851e28-af12-43f6-898e-c62bde6bd0ec"), "mmoitemsDecoy", 0, Operation.ADD_NUMBER); - /** * Used to build an MMOItem into an ItemStack. * @@ -171,13 +164,6 @@ public class ItemStackBuilder { tags.add(new ItemTag("MMOITEMS_DYNAMIC_LORE", array.toString())); meta.setLore(list); - /* - * This tag is added to entirely override default vanilla item attribute - * modifiers, this way armor gives no ARMOR or ARMOR TOUGHNESS to the holder. - * Since 4.7 attributes are handled via custom calculations - */ - meta.addAttributeModifier(Attribute.GENERIC_ATTACK_SPEED, fakeModifier); - if (mmoitem.hasData(ItemStats.NAME) && meta.hasDisplayName()) { meta.setDisplayName(getMeta().getDisplayName()); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index b824d5e3..0f99b7fc 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -274,25 +274,25 @@ disable-vanilla-recipes: [] # Options for the Item Revision System item-revision: + # Whether the updated items should reroll stats + # according to the players current level or if + # they should keep the level and tier from when + # the item was first generated. + reroll-when-updated: false + # This is the value to set the Item Level to when # items are updated by the revision system. # This can be set to -1 to use the items previous level. # Please note, that this value has no effect if # ´reroll-when-updated´ is set to true. default-item-level: -1 - + # Whether or not the current tier of the item should # be carried over. # Please note, that this value has no effect if # ´reroll-when-updated´ is set to true. keep-tiers: true - # Whether the updated items should reroll stats - # according to the players current level or if - # they should keep the level and tier from when - # the item was first generated. - reroll-when-updated: false - # Whether or not specific stats should be kept # when an item is updated to latest revision. keep-data: @@ -304,7 +304,7 @@ item-revision: # Modifications are Gemstones and Upgrades # Please note that some stats will be unable to update # to the latest changes if you enable these. - modifications: false + modifications: true # Here you can disable individual events for when # Items should update when a higher revision ID is found