diff --git a/src/main/java/me/night/nullvalkyrie/enums/Rarity.java b/src/main/java/me/night/nullvalkyrie/enums/Rarity.java index 4453297..92f6fed 100644 --- a/src/main/java/me/night/nullvalkyrie/enums/Rarity.java +++ b/src/main/java/me/night/nullvalkyrie/enums/Rarity.java @@ -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; diff --git a/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java b/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java index fe0cacd..5ed9635 100644 --- a/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java +++ b/src/main/java/me/night/nullvalkyrie/items/CustomItemManager.java @@ -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;