API PlayerDeathEvent

Discussion in 'Support' started by Retrix Solutions, May 13, 2018.

  1. Retrix Solutions

    Retrix Solutions New Member

    Joined:
    May 13, 2018
    Messages:
    1
    Likes Received:
    0
    Hello! I am currently using the API provided with MythicMobs (v4.3.2). I cannot find the method to see when a mythic mob kills a player, is there a method for this? If there isn't how would you recommend the tracking of this?
     
    #1
  2. Roger M

    Roger M Member
    Supporter

    Joined:
    May 13, 2016
    Messages:
    72
    Likes Received:
    8
    You could listen for the player death event, then see if the killer entity is a mm.
    pl.getAPIHelper().isMythicMob(ent) is how I usual check during an event.
     
    #2

Share This Page