I would like to build a plugin to restrict file transfer to specific users or user group/s

I would like to build a plugin to restrict file transfer to specific users or user group/s. I’m quite new to openfire and would like any assistance.i’m currently using openfire 3.6.4

I have attached a jpg file of what i think the final plugin should add