Update plugin.php

getResource not valid on 1.0.0g4