Do you need to create your own Cordova plugin? If yes, that has nothing to do with Monaca and you should check Cordova plugins implementation guideline.