Skip to content

Commit

Permalink
防具の防御力を0に
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisa9006 committed Aug 4, 2024
1 parent 8678ec8 commit 303e1eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/azisaba/lgw/core/utils/CustomItem.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package net.azisaba.lgw.core.utils;

import java.util.Arrays;
import java.util.UUID;

import org.bukkit.Material;
import org.bukkit.attribute.Attribute;
import org.bukkit.attribute.AttributeModifier;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.LeatherArmorMeta;
Expand Down Expand Up @@ -33,6 +37,7 @@ public static ItemStack getTeamChestplate(BattleTeam team) {
meta.setDisplayName(team.getTeamName());
meta.setColor(team.getColor());
meta.setUnbreakable(true);
meta.addAttributeModifier(Attribute.GENERIC_ARMOR, new AttributeModifier(UUID.randomUUID(),"generic.armor", 0,AttributeModifier.Operation.ADD_NUMBER, EquipmentSlot.CHEST));
item.setItemMeta(meta);
item.addUnsafeEnchantment(Enchantment.DURABILITY, 10);
item.addUnsafeEnchantment(Enchantment.BINDING_CURSE, 1);
Expand Down

0 comments on commit 303e1eb

Please sign in to comment.