Version of the adapter corrected to work the plugin

First pull request for the new version of the adapter that should work for SkywayJS and the plugin