Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

if($cause instanceof explosion){ ??

Comments in 'Plugin Development' started by dxm_hippie, Jun 14, 2015.

  1. dxm_hippie
    Offline

    dxm_hippie Active Member Plugin Developer

    Joined:
    Feb 1, 2015
    Posts:
    413
    Plugins:
    1
    Minecraft User:
    XxDXM_hippiexX
    well..ik a bit about php but sadly not much i work 2 jobs and learn from a few sites when i have time but mostly study and do the trial and error method XD i just had no idea how to say if the player went boom..every other time i was messing with a playerdamageevent i have used instanceof EntityDamageByEntityEvent so i figured it would be kinda the same for if they are nuked.
  2. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Take your time to learn ;) I finished PHP course at Codecademy after 1 year... And EssentialsPE has being coded from May 5th, 2014... More than 1 year now! And I'm still learning a lot on how to use PocketMine-MP and optimize my codes

Share This Page

Advertisement