Oheers / EvenMoreFish

An advanced fishing plugin based on MoreFish, created 2 years after its last update.
MIT License
94 stars 58 forks source link

How to get name special fish in fishing event #178

Closed nogaruki closed 1 year ago

nogaruki commented 1 year ago

Hello I try to get fish by event : PlayerFishEvent But I don't know how to convert the entiy get by the player to a instance of Fish from EventMoreFish. Is there an API?

Oheers commented 1 year ago

Apologies for missing this, there is an API for the plugin and the maven information can be found here:

<dependency>
    <groupId>com.oheers.evenmorefish</groupId>
    <artifactId>even-more-fish</artifactId>
    <version>1.6.8</version>
</dependency>

then you'll want to use the EMFFishEvent instead in place of your PlayerFishEvent, and the #getFish() method from that.