Skip to content

Im-Fran/SimpleCoreAPI

Repository files navigation

Production Badges

Maven Central Version (Prod) Dokka

Dev Badges

Maven Central Version (Dev) Dokka

SimpleCoreAPI

The best way to create a plugin

This is a library coded in Kotlin to help kotlin developers create Spigot, BungeeCord and Velocity Plugins. It also supports creating Standalone applications (but only with the global modules, because those do not require any other software to work).

Included Libraries

Where is the documentation?

The docs can be found here (it's a Dokka Resource), everything is documented through the Kotlin Docs (Similar to JavaDocs but for Kotlin :p )

How does this work?

Ok, so we have multiple types of initializers for different software, Spigot, Bungee, Velocity and Standalone.

The Standalone system is meant to be executed without any extra software, like desktop applications or command line tools. Only the global modules are available in this mode.

Ok, and how do I use the Standalone mode?

In the Standalone system you will naturally shade SimpleCoreAPI and use the xyz.theprogramsrc.simplecoreapi.standalone.StandaloneLoader as your main class.
Later you will mark your main class with the @EntryPoint annotation. Then SimpleCoreAPI will load all modules, then execute the @EntryPoint class.

How do I use the other modes?

Depending on the software you're using you'll need to mark SimpleCoreAPI and the modules you need as dependency (NOT soft-dependency) so the system will load all modules and files you need before your plugin is loaded.