Install Skript plugin from here and put it into your plugins folder.
Go to "Skript" folder, "Scripts" and put the file inside it. After you are done do in game "/sk reload scripts", you shouldn't see any error in the console.
Tada! Now you can enjoy the skript. It's completely customizable, if you have troubles or don't know how to modify the file join to this discord server.