Akses kelas utama dari keran kelas lain

private MainClassName plugin;

public currentClassname(MainClassName instance) {
	plugin = instance;
}

// you can then use your plugin as the plugin variable
TechTalk