|
|
|
@ -461,9 +461,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*10)+1)+"% "+ChatColor.BLUE+"Critical Chance"); |
|
|
|
|
} else |
|
|
|
@ -494,9 +496,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*10)+1)+"% "+ChatColor.BLUE+"Critical Chance"); |
|
|
|
|
} else |
|
|
|
@ -529,9 +533,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*10)+1)+"% "+ChatColor.BLUE+"Critical Chance"); |
|
|
|
|
} else |
|
|
|
@ -561,9 +567,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*4)+1)+" "+ChatColor.BLUE+"Health"); |
|
|
|
|
} else |
|
|
|
@ -602,9 +610,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*20)+1)+"% "+ChatColor.BLUE+"Critical Chance"); |
|
|
|
|
} |
|
|
|
@ -635,9 +645,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*20)+1)+"% "+ChatColor.BLUE+"Critical Chance"); |
|
|
|
|
} |
|
|
|
@ -679,9 +691,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*20)+1)+"% "+ChatColor.BLUE+"Critical Chance"); |
|
|
|
|
} |
|
|
|
@ -711,9 +725,11 @@ public class PlayerListener |
|
|
|
|
if (e.getItem().hasItemMeta() && e.getItem().getItemMeta().getLore()!=null) { //Check the lore for any weak item conflicts.
|
|
|
|
|
List<String> thelore = e.getItem().getItemMeta().getLore(); |
|
|
|
|
for (int i=0;i<thelore.size();i++) { |
|
|
|
|
if (thelore.get(i).contains(ChatColor.RED+"-400% Durability")) { |
|
|
|
|
ourLore.add(thelore.get(i)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Math.random()<=0.2) { |
|
|
|
|
ourLore.add(ChatColor.YELLOW+"+"+((int)(Math.random()*6)+1)+" "+ChatColor.BLUE+"Health"); |
|
|
|
|
} |
|
|
|
|