Advertisement
Guest User

Untitled

a guest
Jul 14th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. @EventHandler
  2. public void onPlayerInteract(PlayerInteractEvent reducto) {
  3. Player caster = (Player) reducto.getPlayer();
  4. Block b = caster.getTargetBlock(null, 100);
  5. Location location = b.getLocation();
  6. if (Main.explode.get(player)) {
  7. if (caster.getItemInHand().getType() == Material.STICK && reducto.getAction() == Action.LEFT_CLICK_AIR) {
  8. TNTPrimed tnt = caster.getWorld().spawn(location, TNTPrimed.class);
  9. tnt.setFuseTicks(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement