Plugin type for presence events.
Added presence event with plugin type.
Added function to process presence event.