mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Added permissions node for Blast Mining - Addresses MCCORE-38
This commit is contained in:
parent
828f5ad173
commit
182219f00d
@ -79,7 +79,7 @@ public class mcBlockListener implements Listener
|
||||
}
|
||||
|
||||
//TNT placement checks - needed for Blast Mining
|
||||
if(block.getTypeId() == 46)
|
||||
if(block.getTypeId() == 46 && mcPermissions.getInstance().blastmining(player))
|
||||
{
|
||||
PlayerProfile PP = Users.getProfile(player);
|
||||
int skill = PP.getSkillLevel(SkillType.MINING);
|
||||
@ -157,7 +157,7 @@ public class mcBlockListener implements Listener
|
||||
*/
|
||||
|
||||
//TNT removal checks - needed for Blast Mining
|
||||
if(block.getTypeId() == 46 && inhand.getTypeId() != 259)
|
||||
if(block.getTypeId() == 46 && inhand.getTypeId() != 259 && mcPermissions.getInstance().blastmining(player))
|
||||
{
|
||||
plugin.misc.tntTracker.remove(block);
|
||||
}
|
||||
|
@ -93,7 +93,8 @@ public class mcEntityListener implements Listener
|
||||
if(event.getEntity() instanceof Player)
|
||||
{
|
||||
Player player = (Player)event.getEntity();
|
||||
BlastMining.demolitionsExpertise(player, event);
|
||||
if(mcPermissions.getInstance().blastmining(player))
|
||||
BlastMining.demolitionsExpertise(player, event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user