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

Error I've never seen before

Comments in 'Plugin Development' started by BlubberBoy333, May 29, 2016.

  1. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    So I'm working on making a minigame for my server, and I got this error:
    pocketmine\utils\PluginException: "pocketmine\event\entity\EntityDamageByEntityEvent does not have a handler list" (EXCEPTION) in "/src/pocketmine/plugin/PluginManager" at line 795
    Does anyone know why I'm getting this, and how I can fix it?
  2. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
    Last edited: May 29, 2016
  3. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    I followed this thread and it didn't help at all. It is the same problem that I have but the solution in that thread didn't help my issue
  4. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
    2989 results to go! :)
    applqpak likes this.
  5. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    2989 results on Bukkit and PocketMine's Github page (which I've already checked and it didn't help)
  6. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Then how did I find this?
    applqpak and HotFireyDeath like this.
  7. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    What?
  8. Extreme_Heat
    Offline

    Extreme_Heat Active Member

    Joined:
    Apr 19, 2016
    Posts:
    76
    Minecraft User:
    Extreme_Heat
    The previous snippet will check the last damage cause, not the current one.

    Use something like this instead:

    PHP:
    public function onEntityDamageEvent(EntityDamageEvent $event) {

        if (
    $event instanceof EntityDamageByEntityEvent) {
            
    // code here
        
    }
    }
    Legoboy0215 and applqpak like this.
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    TBH, I believe a true developer can figure that out himself with the hint. Anyways, thanks for the correction :p
    jojoe77777 likes this.
  10. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    I think this is the problem I was having. Thanks :D
    Legoboy0215 likes this.

Share This Page

Advertisement