Closed Andre601 closed 2 months ago
Figured it out. Put it in the onLoad() method.
I feel like the readme should mention this.
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.
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?