diff --git a/.classpath b/.classpath index 49083fc..0d7db5a 100644 --- a/.classpath +++ b/.classpath @@ -6,6 +6,5 @@ - diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index c9db23e..c917392 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java index 80a3544..52f1e21 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java @@ -3457,25 +3457,27 @@ public class GenericFunctions { } public static void ConvertSetColor(ItemStack item, ItemSet set) { - if (set==ItemSet.JAMDAK) { - LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); - lm.setColor(org.bukkit.Color.fromRGB(128, 64, 0)); - item.setItemMeta(lm); - } - if (set==ItemSet.DARNYS) { - LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); - lm.setColor(org.bukkit.Color.fromRGB(224, 224, 224)); - item.setItemMeta(lm); - } - if (set==ItemSet.ALIKAHN) { - LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); - lm.setColor(org.bukkit.Color.fromRGB(64, 0, 64)); - item.setItemMeta(lm); - } - if (set==ItemSet.LORASAADI) { - LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); - lm.setColor(org.bukkit.Color.fromRGB(0, 64, 0)); - item.setItemMeta(lm); + if (item.getType().name().contains("LEATHER_")) { + if (set==ItemSet.JAMDAK) { + LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); + lm.setColor(org.bukkit.Color.fromRGB(128, 64, 0)); + item.setItemMeta(lm); + } + if (set==ItemSet.DARNYS) { + LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); + lm.setColor(org.bukkit.Color.fromRGB(224, 224, 224)); + item.setItemMeta(lm); + } + if (set==ItemSet.ALIKAHN) { + LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); + lm.setColor(org.bukkit.Color.fromRGB(64, 0, 64)); + item.setItemMeta(lm); + } + if (set==ItemSet.LORASAADI) { + LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta(); + lm.setColor(org.bukkit.Color.fromRGB(0, 64, 0)); + item.setItemMeta(lm); + } } }