Update lib/plugins/plugin.php