diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index dabae47..fc1345d 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/LivingEntityDifficulty.java b/src/sig/plugin/TwosideKeeper/HelperStructures/LivingEntityDifficulty.java index 093d997..44b9761 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/LivingEntityDifficulty.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/LivingEntityDifficulty.java @@ -183,7 +183,11 @@ public enum LivingEntityDifficulty { set==ItemSet.WOLFSBANE || set==ItemSet.ALUSTINE)) { goodie.setType(Material.SKULL_ITEM); - } + } else + if (!goodie.getType().name().contains("SWORD") && + (set==ItemSet.LORASYS)) { + goodie.setType(Material.valueOf(goodie.getType().name().split("_")[0]+"_SWORD")); + } if (!GenericFunctions.isArmor(goodie) && (set==ItemSet.BLITZEN || set==ItemSet.COMET || set==ItemSet.CUPID || diff --git a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java index 335b97c..d78ca14 100644 --- a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java +++ b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java @@ -9274,14 +9274,14 @@ public class TwosideKeeper extends JavaPlugin implements Listener { } else { receiver.sendMessage("----------"); } - TextComponent msg = DisplayPerks(p.getEquipment().getItemInMainHand(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Main Hand"+ChatColor.RESET,p,0);if (!msg.toPlainText().equalsIgnoreCase("")) { + TextComponent msg = DisplayPerks(p.getEquipment().getItemInMainHand(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Main Hand"+ChatColor.RESET,p,0,all);if (!msg.toPlainText().equalsIgnoreCase("")) { if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; - msg = DisplayPerks(p.getEquipment().getItemInOffHand(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Off Hand"+ChatColor.RESET,p,0);if (!msg.toPlainText().equalsIgnoreCase("")) { + msg = DisplayPerks(p.getEquipment().getItemInOffHand(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Off Hand"+ChatColor.RESET,p,0,all);if (!msg.toPlainText().equalsIgnoreCase("")) { if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; - msg = DisplayPerks(p.getEquipment().getHelmet(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Helmet"+ChatColor.RESET,p,903);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; - msg = DisplayPerks(p.getEquipment().getChestplate(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Chestplate"+ChatColor.RESET,p,902);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; - msg = DisplayPerks(p.getEquipment().getLeggings(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Leggings"+ChatColor.RESET,p,901);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; - msg = DisplayPerks(p.getEquipment().getBoots(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Boots"+ChatColor.RESET,p,900);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; + msg = DisplayPerks(p.getEquipment().getHelmet(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Helmet"+ChatColor.RESET,p,903,all);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; + msg = DisplayPerks(p.getEquipment().getChestplate(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Chestplate"+ChatColor.RESET,p,902,all);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; + msg = DisplayPerks(p.getEquipment().getLeggings(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Leggings"+ChatColor.RESET,p,901,all);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; + msg = DisplayPerks(p.getEquipment().getBoots(),ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+" Boots"+ChatColor.RESET,p,900,all);if (!msg.toPlainText().equalsIgnoreCase("")) {if (receiver instanceof Player) {((Player)receiver).spigot().sendMessage(msg);} else {receiver.sendMessage(msg.toPlainText());}}; } if (receiver instanceof Player) { ((Player)receiver).sendMessage("----------"); @@ -9290,7 +9290,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener { } } - public static TextComponent DisplayPerks(ItemStack item,String type,Player p, int slot) { + public static TextComponent DisplayPerks(ItemStack item,String type,Player p, int slot, boolean all) { TextComponent tc = new TextComponent(""); if (GenericFunctions.isArtifactEquip(item) && (ArtifactAbility.getEnchantments(item).size()>0 || AwakenedArtifact.getAP(item)>0)) { @@ -9298,7 +9298,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener { HashMap enchants = ArtifactAbility.getEnchantments(item); tc.addExtra(""); tc.addExtra(ChatColor.GRAY+""+ChatColor.ITALIC+type+": "); - TextComponent tc5 = new TextComponent(ChatColor.GREEN+"["+GenericFunctions.UserFriendlyMaterialName(item)+ChatColor.RESET+ChatColor.GREEN+"] "); + TextComponent tc5 = new TextComponent(ChatColor.GREEN+"["+ChatColor.stripColor(GenericFunctions.UserFriendlyMaterialName(item))+ChatColor.RESET+ChatColor.GREEN+"] "); tc5.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT,new ComponentBuilder(GenericFunctions.UserFriendlyMaterialName(item)+WorldShop.GetItemInfo(item)).create())); tc.addExtra(tc5); if (AwakenedArtifact.getAP(item)>0) { @@ -9307,25 +9307,26 @@ public class TwosideKeeper extends JavaPlugin implements Listener { tc1.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND,"/awakenedartifact menu "+slot)); tc.addExtra(tc1); } - - /*tc.addExtra("\n"); - int j=0; - for (int i=0;i=4 && i!=enchants.size()-1) { - tc1.addExtra("\n"); - j=0; + if (all) { + tc.addExtra("\n"); + int j=0; + for (int i=0;i=4 && i!=enchants.size()-1) { + tc1.addExtra("\n"); + j=0; + } + tc.addExtra(tc1); } - tc.addExtra(tc1); - }*/ + } } else { if (item!=null && item.getType()!=Material.AIR && GenericFunctions.isEquip(item)) { - TextComponent tc1 = new TextComponent(ChatColor.GREEN+"["+GenericFunctions.UserFriendlyMaterialName(item)+ChatColor.RESET+ChatColor.GREEN+"]"); + TextComponent tc1 = new TextComponent(ChatColor.GREEN+"["+ChatColor.stripColor(GenericFunctions.UserFriendlyMaterialName(item))+ChatColor.RESET+ChatColor.GREEN+"]"); tc1.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT,new ComponentBuilder(GenericFunctions.UserFriendlyMaterialName(item)+WorldShop.GetItemInfo(item)).create())); tc.addExtra(ChatColor.BOLD+type+": "+ChatColor.RESET); tc.addExtra(tc1);