PrimedTnt

Discussion in 'Plugin Development' started by creepers84, May 18, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    GodzOfMadness

    creepers84 Then you might be near the spawn area. I don't see how it would deny you from taking damage from the explosion. If that's not the case, I don't know what to tell you.
     
  2. Offline

    creepers84

    If it helps here is the code again:
    Code:
    @EventHandler
    public void onPlayerInteract111(PlayerInteractEvent event){
        final Player player = event.getPlayer();
        if(event.getAction().equals(Action.RIGHT_CLICK_AIR)){
              int blockId = player.getItemInHand().getType().getId();
              int blockSubId = player.getItemInHand().getDurability();
              if (blockId == 397 && blockSubId == 4) { 
                  if(player.hasPermission("creeper.fire")){ 
                      getConfig().getBoolean("Creeper-Head.Tnt-Block-Damage");
                      player.getWorld().createExplosion(player.getTargetBlock(null, 5).getLocation().getX(), player.getTargetBlock(null, 5).getLocation().getY(), player.getTargetBlock(null, 5).getLocation().getZ(), 2, false, getConfig().getBoolean("Creeper-Head.Tnt-Block-Damage"));
     
  3. Offline

    GodzOfMadness

    creepers84 I don't know what to tell you.. It should damage you if you are near it. Try increasing the power? That's my best guess. If it doesn't work then I'm out of ideas.
     
  4. Offline

    creepers84

    Iv'e tested all the possible options you have given me and there is still no Player Damage.
     
  5. Offline

    GodzOfMadness

Thread Status:
Not open for further replies.

Share This Page