This is some code that i quickly put together as i couldn't find anything like this for Essentials V21.1. As the name suggest this will make it so when you encounter a wild Pokémon it has a chance to spawn with its hidden ability.
To do this in the scripts editor, scroll down to the Pokemon tab...