This commit is contained in:
nossr50
2019-04-04 00:39:00 -07:00
parent b8b0be71b1
commit f1d9f787f4
5 changed files with 10 additions and 3 deletions

View File

@ -500,7 +500,7 @@ public class Config extends AutoUpdateConfigLoader {
public double getFishingLureModifier() { return config.getDouble("Skills.Fishing.Lure_Modifier", 4.0D); }
/* Mining */
public int getMiningGate() { return config.getInt("Skills.Mining.Ability_Activation_Level_Gate", 10); }
public Material getDetonatorItem() { return Material.matchMaterial(config.getString("Skills.Mining.Detonator_Name", "FLINT_AND_STEEL")); }
/* Excavation */
public int getExcavationGate() { return config.getInt("Skills.Excavation.Ability_Activation_Level_Gate", 10); }

View File

@ -43,7 +43,7 @@ public class MiningManager extends SkillManager {
Player player = getPlayer();
return canUseBlastMining() && player.isSneaking()
&& ItemUtils.isPickaxe(getPlayer().getInventory().getItemInMainHand())
&& (ItemUtils.isPickaxe(getPlayer().getInventory().getItemInMainHand()) || player.getInventory().getItemInMainHand().getType() == Config.getInstance().getDetonatorItem())
&& Permissions.remoteDetonation(player);
}

View File

@ -348,6 +348,7 @@ Skills:
Prevent_AFK_Leveling: true
Mining:
Level_Cap: 0
Detonator_Name: FLINT_AND_STEEL
Ability_Activation_Level_Gate: 10
Repair:
Level_Cap: 0