Not directly a plugin, but a small script which does roughly the same. You can change it how you like to make it fit your requirements.
You need to download KtSkript. Start the server, create a new file in the scripts
folder, use the file extension .ktskript
and put this in there: Script