Correct way to list events?

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

  1. rektpixel

    rektpixel Baby Zombie

    Messages:
    188
    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:
    160
    GitHub:
    xdmingxd
    PHP:
    or
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,868
    GitHub:
    sof3

Share This Page

  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.