Fixed PluginManager

PluginManager now works thanks to ScottKillen :)