mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-26 20:27:38 +01:00
Merge remote-tracking branch 'origin/master' into master
This commit is contained in:
commit
ef7189c89e
@ -6,6 +6,7 @@ import com.willfp.eco.util.integrations.antigrief.AntigriefManager;
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchant;
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchants;
|
||||
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
|
||||
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
|
||||
import org.bukkit.Particle;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -31,6 +32,10 @@ public class BlastMining extends EcoEnchant {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!EnchantmentUtils.passedChance(this, level)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.isSneaking() && this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "disable-on-sneak")) {
|
||||
return;
|
||||
}
|
||||
|
@ -20,8 +20,10 @@ general-config:
|
||||
conflicts:
|
||||
- drill
|
||||
- vein
|
||||
maximum-level: 1
|
||||
|
||||
config:
|
||||
chance-per-level: 100
|
||||
disable-on-sneak: true
|
||||
enable-sound: true # Play explosion sound
|
||||
hardness-check: true # Only break blocks with hardness less than or equal to first block
|
||||
|
Loading…
Reference in New Issue
Block a user