@@ -178,19 +178,6 @@ public class SpigotItem {
|
||||
return this;
|
||||
}
|
||||
|
||||
public SpigotItem setGlowing() {
|
||||
this.itemStack.addUnsafeEnchantment(Enchantment.LUCK, 1);
|
||||
ItemMeta meta = this.itemStack.getItemMeta();
|
||||
meta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
||||
this.itemStack.setItemMeta(meta);
|
||||
return this;
|
||||
}
|
||||
|
||||
public SpigotItem unGlowing() {
|
||||
this.itemStack.removeEnchantment(Enchantment.LUCK);
|
||||
return this;
|
||||
}
|
||||
|
||||
public SpigotItem setArmorColor(@Nonnull Color color) {
|
||||
LeatherArmorMeta leatherArmorMeta = (LeatherArmorMeta) this.itemStack.getItemMeta();
|
||||
leatherArmorMeta.setColor(color);
|
||||
|
||||
@@ -8,8 +8,6 @@ import java.util.function.Consumer;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
|
||||
import com.softwarerat.GameAPI;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.HumanEntity;
|
||||
|
||||
Reference in New Issue
Block a user