I don't really think the failsafe is needed. If the Info.lua exists but is invalid then the plugin might not even be loaded.
That got me thinking, this plugin also shows permissions from plugins that aren't loaded. If you want to remove those you might want to put
Also, I found out why the LoaderEnv table is empty. I forgot to actually call the loader If you'd use "PluginInfoLoader()" after the setfenv function it works normally.
That got me thinking, this plugin also shows permissions from plugins that aren't loaded. If you want to remove those you might want to put
if (not a_Plugin:IsLoaded()) then return false endAt the top of the ForEachPlugin callback.
Also, I found out why the LoaderEnv table is empty. I forgot to actually call the loader If you'd use "PluginInfoLoader()" after the setfenv function it works normally.