improve permissions

change the required system to make using the easier
read the required permissions dynamically from the plugin.yml file