AlessioDP / libby

A runtime dependency management library for plugins running in Java-based Minecraft server platforms.
MIT License
76 stars 20 forks source link

[Question] Where do you actually use this? #47

Closed Andre601 closed 2 months ago

Andre601 commented 2 months ago

I can't find an answer to this (probably simple) question, but where or when exactly would I set the loader, libraries, etc?

Would it be during the plugin's loading phase (onLoad())? Enable phase (onEnable())? Anywhere else?

Andre601 commented 2 months ago

Figured it out. Put it in the onLoad() method.

I feel like the readme should mention this.

frengor commented 2 months ago

Libraries can be loaded at any time (even though usually the right choice is onLoad()). For example, in UltimateAdvancementAPI libraries are loaded only when needed and before loading the classes requiring their presence (see here and here).

I feel like the readme should mention this.

IIRC @AlessioDP was writing a wiki for the 2.0.0 version, however I don't know if it mentioned this.