Listening to event on ipcMain from plugin menu.js

Hello, I am working on a plugin which works like this, and I need to listen to events on the main process to execute a jar file.
To do so I need to make a

ipcMain.on('event', callback)

call. Is that possible on this file?
I have the electronApp module in here, which is part of the main process, but as I saw it does not listen to ipcRenderer events.

Is there a way to do so? Am I missing something?

Topics:
Linked topic - Script editor plugin
Similar topic