Fire Charge for IgniteCause?

Discussion in 'Plugin Development' started by o0AzzA0o, Apr 9, 2012.

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

    o0AzzA0o

    This is snipit from BlockIgniteEvent am i missing something or is there
    no code to pickup if the cause for ignition is a firecharge?

    If there is some code to determine if firecharge was responsible could
    someone please point me to it ?

    00055 public enum IgniteCause {
    00056
    00060 LAVA,
    00064 FLINT_AND_STEEL,
    00068 SPREAD,
    00072 LIGHTNING,
    00073 }


    im looking at trying to patch residence to stop firecharge from burning
    players in ignite protected areas but before making a "hacky" fix i thought
    i would ask if there was a proper event for it already.
     
  2. Offline

    sd5

    Add the EntitydamageByEntityEvent and check whether the entity is a firecharge. If yes, cancel the event...
     
Thread Status:
Not open for further replies.

Share This Page