Variables are local. You can't even get it from your own plugin if the function has ended. You can save the variables to fields, and create getters for them. Then call the getter function from another plugin using Server->getPluginManager()->getPlugin()