Im just guessing that you dont know PHP and the PM API (Correct me if im wrong) , so i suggest learning them.
https://github.com/LegendOfMCPE/EssentialsPE/blob/master/src/EssentialsPE/Loader.php#L178-L186 it maybe help you