Getting Started
Plugin dependency configuration
Declare sofyCore as a dependency in your plugin.yml so it loads first and its API is registered before your plugin enables.
Declare a hard dependency on the plugin name sofyCore:
name: MyPlugin
main: com.example.myplugin.MyPlugin
version: 1.0.0
depend: [sofyCore]With depend, Bukkit enables sofyCore first. SofyCoreApi is registered in the ServicesManager during sofyCore's onEnable, before storage connections finish. Data services (persistence, ranks, moderation...) appear later, once the asynchronous startup succeeds. See Accessing the API.