So the way GooPdetected PAPI was by attempting to use it. If it failed, that means PAPI wasn't there.
However, the newest version of PAPI removed the method I was using to test if it was present, making my plugin always fail to find PAPI, as it appeared that it wasn't there at all.