mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Unstable Build: Removes mmodecoy.
This commit is contained in:
parent
a56665c298
commit
fb25284e14
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.Indyuce</groupId>
|
||||
<artifactId>MMOItems</artifactId>
|
||||
<version>6.5.5</version>
|
||||
<version>6.5.6-SNAPSHOT</version>
|
||||
<name>MMOItems</name>
|
||||
<description>A great item solution for your RPG server!</description>
|
||||
|
||||
|
@ -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<ItemTag> 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());
|
||||
}
|
||||
|
@ -274,6 +274,12 @@ 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.
|
||||
@ -287,12 +293,6 @@ item-revision:
|
||||
# ´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
|
||||
|
Loading…
Reference in New Issue
Block a user