Add plugapi script, and also changed P3M to skip only if ids match