Foundation
Foundation
Foundation™ helps you create highly customized Minecraft plugins (based on Spigot/Paper API) that support multiple MC versions.
- Import Foundation using Maven/Gradle (see the Importing section).
- Change “extends JavaPlugin” to “extends SimplePlugin” (we need that to register things and listeners on our end automatically)
- Change onEnable() to onPluginStart() and onDisable() to onPluginStop() (we occupy these methods to perform logic)
- If you use a static getInstance() method in your main plugin’s class, change it to return (T) SimplePlugin.getInstance() where T is your plugin instead. Delete the instance of your plugin from your class if you use it (if you have myPlugin = this anywhere, remove it).
For a sample plugin, see PluginTemplate.
A complete tutorial on how to use this library is a part of our Project Orion training available here
If you just want a quick start into Minecraft plugin development, check out this guick gist.