From 2151fbb6c06945297efa145839037c9ab4481100 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 1 Mar 2012 14:15:16 -0800 Subject: [PATCH] Finishing touches on BM --- .../java/com/gmail/nossr50/listeners/mcPlayerListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java index 8408eb94a..46b804b1d 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java @@ -287,7 +287,7 @@ public class mcPlayerListener implements Listener if((action == Action.RIGHT_CLICK_BLOCK || action == Action.RIGHT_CLICK_AIR) && is.getTypeId() == LoadProperties.detonatorID) { Block b = player.getTargetBlock(null, 100); - if(b.getType().equals(Material.TNT)) + if(b.getType().equals(Material.TNT) && mcPermissions.getInstance().blastMining(player) && m.blockBreakSimulate(b, player, true) && Users.getProfile(player).getSkillLevel(SkillType.MINING) >= 125) { AbilityType ability = AbilityType.BLAST_MINING; //Check cooldown @@ -303,6 +303,8 @@ public class mcPlayerListener implements Listener y.sendMessage(ability.getAbilityPlayer(player)); } + player.sendMessage(ChatColor.GRAY+"**BOOM**"); + TNTPrimed tnt = player.getWorld().spawn(b.getLocation(), TNTPrimed.class); b.setType(Material.AIR); tnt.setFuseTicks(0);