public boolean checkArmor(final String string) {
return this.plugin.getConfig().getConfigurationSection("Sets." + string) != null;
}
public void AddEffect() {
final ItemStack helm = this.player.getEquipment().getHelmet();
final ItemStack legs = this.player.getEquipment().getLeggings();
final ItemStack boot = this.player.getEquipment().getBoots();
final ItemStack chest = this.player.getEquipment().getChestplate();
if (helm != null && legs != null && boot != null && chest != null) {
final String[] eff = null;
final int[] pow = null;
final String a = helm.getItemMeta().getDisplayName();
final boolean s = this.checkArmor(a);
final List<String> a2 = (List<String>)this.plugin.getConfig().getStringList("Sets." + a + ".effects");
if (s && helm.getTypeId() == this.plugin.getConfig().getInt("Sets." + a + ".helmet") && helm.getItemMeta().getDisplayName().contains(a) && legs.getTypeId() == this.plugin.getConfig().getInt("Sets." + a + ".leggings") && legs.getItemMeta().getDisplayName().contains(a) && boot.getTypeId() == this.plugin.getConfig().getInt("Sets." + a + ".boots") && boot.getItemMeta().getDisplayName().contains(a) && chest.getTypeId() == this.plugin.getConfig().getInt("Sets." + a + ".chestplate") && chest.getItemMeta().getDisplayName().contains(a)) {
for (final String a3 : this.plugin.getConfig().getStringList("Sets." + a + ".effects")) {
final String fa = a3;
final String d = " ";
final String[] a4 = a3.split(d);
this.player.addPotionEffect(new PotionEffect(PotionEffectType.getByName(a4[0]), 120, Integer.parseInt(a4[1])), true);
}
}
}
}