Updated economical
This commit is contained in:
@@ -17,7 +17,10 @@ public class Economical extends EcoEnchant {
|
||||
|
||||
@EventHandler
|
||||
public void onElytraBoost(PlayerElytraBoostEvent event) {
|
||||
if(EnchantmentUtils.passedChance(this, EnchantChecks.getArmorPoints(event.getPlayer(), this)))
|
||||
if(!EnchantChecks.chestplate(event.getPlayer(), this))
|
||||
return;
|
||||
if(!EnchantmentUtils.passedChance(this, EnchantChecks.getArmorPoints(event.getPlayer(), this)))
|
||||
return;
|
||||
if(this.getDisabledWorlds().contains(event.getPlayer().getWorld())) return;
|
||||
event.setShouldConsume(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user