How to build own Plugin on Openfire 4.5

I have deploy openfire 4.5.2 on Intelli IDEA, and I want to write some plugin to implement some features, but I don’t know how to write it.

Do you have some SOP to show how to write our own plugin? please show the steps for me in detail if you have it, thank you very much~

Do these resources help?

http://download.igniterealtime.org/openfire/docs/latest/documentation/plugin-dev-guide.html

yes, thank you for your reply. This example can help me to create a plugin module successfully