1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Correct way to list events?

Discussion in 'Facepalm' started by rektpixel, Aug 25, 2017.

  1. rektpixel

    rektpixel Baby Zombie

    Messages:
    186
    Hey I was just needing to know the correct way to list events like this: (this is wrong)
    PHP:
    if($cause instanceof EntityDamageByEntityEvent && $ev->getCause() === EntityDamageEvent::CAUSE_FALLCAUSE_FIRECAUSE,FIRE_TICKCAUSE_DROWNINGCAUSE_MAGICCAUSE_VOIDCAUSE_STARVATIONCAUSE_LAVACAUSE_SUFFICATIONCAUSE_BLOCK_EXPLOSIONCAUSE_ENTITY_EXPLOSION){
    a dot between the causes . instead of ,
    ?
     
    Last edited: Aug 25, 2017
  2. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    PHP:
    or
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.