Added permissions node for Blast Mining - Addresses MCCORE-38

This commit is contained in:
GJ 2012-02-22 10:59:39 -05:00
parent 828f5ad173
commit 182219f00d
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -93,6 +93,7 @@ public class mcEntityListener implements Listener
if(event.getEntity() instanceof Player)
{
Player player = (Player)event.getEntity();
if(mcPermissions.getInstance().blastmining(player))
BlastMining.demolitionsExpertise(player, event);
}
}