HypixelDev / ModAPI

Hypixel Mod API for interfacing with the Hypixel Server via the Minecraft Plugin Message system.
MIT License
82 stars 10 forks source link

Remove getInstance() #13

Closed FxMorin closed 6 months ago

FxMorin commented 6 months ago

We should declare the instance ourselves, in order to be able to unregister the HypixelModAPI when not on hypixel. Sadly Hypixel is not the only server.

ConnorLinfoot commented 6 months ago

Right now the goal is to maintain a singleton instance of the API for use both in mods and also internally with our systems, removing this adds extra complexity that isn't required imo. If you wish to not handle packets when on other server, simply don't pass them through to the API, since this is manually done on a per implementation base anyway

FxMorin commented 6 months ago

I was more or less wanting to keep it out of the memory if I didn't need to. So I guess ill just use reflection instead.