TheSilentPro / HeadDB

Provides access to a database of over 100k heads
GNU General Public License v3.0
24 stars 21 forks source link

Add AsyncHeadsFetchedEvent #49

Closed notstevy closed 1 year ago

notstevy commented 1 year ago

I wanted to create my own plugin. I tried to load all skulls in the onEnable method, but the heads weren't loaded yet. So, I added this event.

TheSilentPro commented 1 year ago

Why not have the result of the heads in the event instead of just the number of heads fetched? Also has this been tested?

notstevy commented 1 year ago

I can change it. I tested it and it works fine, after I added the fixes.

TheSilentPro commented 1 year ago

looks alright just Remove the @SuppressWarnings("unused")s