cancel fire

Discussion in 'Plugin Development' started by GlPlays, Feb 16, 2022.

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

    GlPlays

    hey im looking for a way to cancel the fire when player place it like this or this way if the fire spread
     

    Attached Files:

  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    GlPlays

  4. Offline

    GlPlays

    i still need to know how to cancel the event if the fire was placed by side of the block
     
  5. Offline

    Strahan

    In my testing, if I cancel BlockIgniteEvent one cannot even light edges. Post your code.
     
  6. Offline

    GlPlays

    @EventHandler
    public void flint(BlockIgniteEvent e) {
    Player player = e.getPlayer();
    if (player.getGameMode() != GameMode.SURVIVAL)
    return;
    e.setCancelled(true);
    }
    ---------------------------
    but it cancel every thing i want only when ignite on the edge
    @Strahan
     
Thread Status:
Not open for further replies.

Share This Page