mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-27 20:37:34 +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.EcoEnchant;
|
||||||
import com.willfp.ecoenchants.enchantments.EcoEnchants;
|
import com.willfp.ecoenchants.enchantments.EcoEnchants;
|
||||||
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
|
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
|
||||||
|
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
|
||||||
import org.bukkit.Particle;
|
import org.bukkit.Particle;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -31,6 +32,10 @@ public class BlastMining extends EcoEnchant {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!EnchantmentUtils.passedChance(this, level)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (player.isSneaking() && this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "disable-on-sneak")) {
|
if (player.isSneaking() && this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "disable-on-sneak")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,10 @@ general-config:
|
|||||||
conflicts:
|
conflicts:
|
||||||
- drill
|
- drill
|
||||||
- vein
|
- vein
|
||||||
|
maximum-level: 1
|
||||||
|
|
||||||
config:
|
config:
|
||||||
|
chance-per-level: 100
|
||||||
disable-on-sneak: true
|
disable-on-sneak: true
|
||||||
enable-sound: true # Play explosion sound
|
enable-sound: true # Play explosion sound
|
||||||
hardness-check: true # Only break blocks with hardness less than or equal to first block
|
hardness-check: true # Only break blocks with hardness less than or equal to first block
|
||||||
|
Loading…
Reference in New Issue
Block a user