Tnt Igniter

Discussion in 'Plugin Development' started by JayzaSapphire, Jul 22, 2012.

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

    JayzaSapphire

    How to get the igniter of a primedtnt block, And what event do i use?
     
  2. Offline

    Pr0Shit

    ExplosionPrimeEvent ?


    Hope it helps .
     
  3. Offline

    JayzaSapphire

    Yes i've tried that, but i don't know how to get the igniter of it.
     
  4. Offline

    russjr08

  5. Offline

    Darq

    russjr08 Why would you compare it as a string? :eek:
    Code:
        public void onPrime(final BlockIgniteEvent e) {
            final IgniteCause ic = e.getCause();
            if (ic.equals(IgniteCause.LAVA)) {
                //Do some stuff.
            }
        }
     
  6. Offline

    russjr08

    :confused: oops sorry its early morning here... I'm I going need to go get some coffee.
     
  7. Offline

    JayzaSapphire

    I'm actually trying to use the onExplosionPrimeEvent..
     
  8. Offline

    CorrieKay

    i could be wrong, but i believe that method is for when entities (such as creepers, though note that a primedTNT is still technically an entity, but not before it ignites (at that point its still a block) ) decide to explode.
    you need to use the other event described above i think.
     
  9. Offline

    JayzaSapphire

    And how would i do that?
     
Thread Status:
Not open for further replies.

Share This Page