Fixed coloring of leather armor sets so that they do not error out with

bows.
testdev
sigonasr2 8 years ago
parent c7375a24b7
commit fd495c8ea5
  1. 1
      .classpath
  2. BIN
      TwosideKeeper.jar
  3. 40
      src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java

@ -6,6 +6,5 @@
<classpathentry kind="lib" path="D:/Documents/Test Server/plugins/AutoPluginUpdate.jar"/>
<classpathentry kind="lib" path="D:/Documents/Test Server/plugins/GlowAPI_v1.4.4.jar"/>
<classpathentry kind="lib" path="D:/Documents/Test Server/spigot-1.9.2-R0.1-SNAPSHOT.jar"/>
<classpathentry kind="src" path="/AutoPluginUpdate"/>
<classpathentry kind="output" path="bin"/>
</classpath>

Binary file not shown.

@ -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);
}
}
}

Loading…
Cancel
Save