From a1ac430d0e2de5991fa9b9607c6082489b0ac1f3 Mon Sep 17 00:00:00 2001 From: NK Date: Mon, 5 Dec 2022 10:22:52 +0000 Subject: [PATCH] organisation and hologram interaction --- src/main/java/me/night/nullvalkyrie/enums/Rarity.java | 5 ++--- .../java/me/night/nullvalkyrie/items/CustomItemManager.java | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) 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;