No, you are in the scripting section, meaning you are here to learn, so do it yourself. You wanted a code to play a sound like you want, now just place it where you need to play. After all, you have done this plugin so it supposes you know what you do, especially when you need only to copy/paste one line.