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

Solved Crash

Comments in 'Plugin Development' started by Barrington, Oct 16, 2015.

  1. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    Error in console:

    upload_2015-10-16_18-35-17.png

    Attached Files:

  2. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    sorry for the attached two photos, one of which is not on !
  3. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    You're probably doing this:
    PHP:
    public function onDamage(EntityDamageByEntityEvent $event){
    }
    You can't do that.
  4. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    Use this instead:
    PHP:
    public function onDamage(EntityDamageEvent $event){
      if(
    $event instanceof EntityDamageByEntityEvent){
      }
    }
  5. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    upload_2015-10-16_19-30-39.png
  6. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
  7. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    SOLVED

Share This Page

Advertisement