Welcome to the PluginSimplifier wiki!
Here you will know how to use PluginSimplifier!
To start off, You first need to go to your onEnable in your main class
package com.example.myplugin; import com.maximde.pluginsimplifier.PluginHolder; import org.bukkit.plugin.java.JavaPlugin; public final class MyPlugin extends JavaPlugin { @Override public void onEnable() { PluginHolder.set(this); // give the plugin instance to pluginsimplifier } }
Now, to obtain that instance, you can do
JavaPlugin plugin = PluginHolder.get(); // gets the javaplugin instance
There was an error while loading. Please reload this page.