Removes warnings caused by deprecation

And makes the plugin fully compatible with 1.7.9-R0.2 (which was already the case but with deprecation)