organisation and hologram interaction

This commit is contained in:
NK 2022-12-05 10:22:52 +00:00
parent 8441c06a17
commit a1ac430d0e
2 changed files with 2 additions and 5 deletions

View file

@ -10,8 +10,8 @@ public enum Rarity {
MYTHIC(net.md_5.bungee.api.ChatColor.of("#ff23ff").toString() + ChatColor.BOLD + "MYTHIC", net.md_5.bungee.api.ChatColor.of("#ff23ff").toString()),
ULTRA(ChatColor.RED.toString() + ChatColor.BOLD + "ULTRA", ChatColor.RED.toString()),
GRAND(net.md_5.bungee.api.ChatColor.of("#00fdff").toString() + ChatColor.BOLD + "GRAND", net.md_5.bungee.api.ChatColor.of("#00fdff").toString());
private String display;
private String color;
private final String display;
private final String color;
Rarity(String display, String color) {
this.display = display;
this.color = color;
@ -24,7 +24,6 @@ public enum Rarity {
}
public static Rarity getRarity(String str) {
return switch (str) {
case "COMMON" -> COMMON;
case "UNCOMMON" -> UNCOMMON;
case "RARE" -> RARE;
case "EPIC" -> EPIC;

View file

@ -8,7 +8,6 @@ import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.attribute.Attribute;
import org.bukkit.attribute.AttributeModifier;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemFlag;
@ -16,7 +15,6 @@ import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import java.io.File;
import java.io.IOException;
import java.util.*;
import static me.night.nullvalkyrie.database.CustomWeaponsDataManager.getWeapon;