When moving the methods from the API to the plugin, unfortunately I used the wrong method, getInternalPlugin instead of getProtectedPlugin, which requires programming rights to succeed.