From c935896d601227667b6fb3d2ada1d4fa4fddc406 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Tue, 19 Nov 2013 04:04:46 -0700 Subject: [PATCH] Added is_PermanentProperty() to contain all lore phrases where the property should not be removed in cases where items need to remove other lore "bonuses". --- BankEconomyMod/src/me/kaZep/Base/Main.java | 30 +++++++++++++---- .../src/me/kaZep/Base/PlayerListener.java | 32 ++++++------------- .../me/kaZep/Commands/commandBankEconomy.java | 2 +- 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/BankEconomyMod/src/me/kaZep/Base/Main.java b/BankEconomyMod/src/me/kaZep/Base/Main.java index 11e0325..5033395 100644 --- a/BankEconomyMod/src/me/kaZep/Base/Main.java +++ b/BankEconomyMod/src/me/kaZep/Base/Main.java @@ -4118,7 +4118,7 @@ public void payDay(int time) if (item.hasItemMeta() && item.getItemMeta().getLore()!=null) { List thelore = item.getItemMeta().getLore(); for (int i=0;i permanent_properties = new ArrayList(); + permanent_properties.add(ChatColor.RED+"-400% Durability"); + permanent_properties.add(ChatColor.RED+"Duplicated"); + if (permanent_properties.contains(property)) { + return true; + } else { + return false; } - return false; } public double getEnchantmentNumb(String s) { diff --git a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java index 49b470c..ed9359a 100644 --- a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java +++ b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java @@ -488,7 +488,7 @@ implements Listener if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts. List thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i thelore = e.getItem().getItemMeta().getLore(); for (int i=0;i