Duplicating events

I'm away from hone at the moment so I can't play aroubd in the editor right now. However, I was wondering if anyone has had success duplicating an event.
If I remember correctly events are stored in an array, so my first thought was to just push the event I want copied into the array and change it's x and y coords.
The event in question is just a one page event with a conditional branch that says to erase this event if a variable equals true.
There should be quite several event clone plugins out there maybe you can try to peek at how it's done?
Yeah, I'll take a look at one of them.

Original thread: https://forums.rpgmakerweb.com/threads/duplicating-events.96028/