mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +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
|
//TNT placement checks - needed for Blast Mining
|
||||||
if(block.getTypeId() == 46)
|
if(block.getTypeId() == 46 && mcPermissions.getInstance().blastmining(player))
|
||||||
{
|
{
|
||||||
PlayerProfile PP = Users.getProfile(player);
|
PlayerProfile PP = Users.getProfile(player);
|
||||||
int skill = PP.getSkillLevel(SkillType.MINING);
|
int skill = PP.getSkillLevel(SkillType.MINING);
|
||||||
@ -157,7 +157,7 @@ public class mcBlockListener implements Listener
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//TNT removal checks - needed for Blast Mining
|
//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);
|
plugin.misc.tntTracker.remove(block);
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,7 @@ public class mcEntityListener implements Listener
|
|||||||
if(event.getEntity() instanceof Player)
|
if(event.getEntity() instanceof Player)
|
||||||
{
|
{
|
||||||
Player player = (Player)event.getEntity();
|
Player player = (Player)event.getEntity();
|
||||||
|
if(mcPermissions.getInstance().blastmining(player))
|
||||||
BlastMining.demolitionsExpertise(player, event);
|
BlastMining.demolitionsExpertise(player, event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user