reference main class from another class spigot code example
Example: access main class from another class spigot
private MainClassName plugin;
public currentClassname(MainClassName instance) {
plugin = instance;
}
// you can then use your plugin as the plugin variable