Error with KTimers script by kyonides

I'm going to be using the KTimers script by kyonides in my game so that the player can get resources. I've run it in the demo and it worked beautifully. However, when I put it into my game, I got an error that said "Script 'Ktimers XP' line 91: NoMethodError Occurred. Undefined method '[]' for nil:NilClass"

I checked using a test game to make sure there wasn't any script incompatibility, since the error occurred upon attempting to start a game.

Here's the link to the script: https://www.save-point.org/thread-4420-post-30611.html

And if you're curious the line in question reads:
@events.map {|e| next unless e[1].list[0].code == 108

There is another error I got when I tried to load a save file, but I tend to restart the game progress whenever I add a new script, and I have no idea if that error will come up after this current error is fixed. If it is, obviously I'll post or edit the post here, but until then this is the only issue I'm having with this script.
Well, I hadn't touched that script for almost a decade, yet, I think I have edited it to prevent such errors from popping up on your face. Please visit the same URL to download the latest demo there.
In case you find another bug, feel free to pm me.
Well, I hadn't touched that script for almost a decade, yet, I think I have edited it to prevent such errors from popping up on your face. Please visit the same URL to download the latest demo there.
In case you find another bug, feel free to pm me.
I'll admit, I did initially download the incorrect demo. the correct demo fixed the exact error I had... except it's happened against except it's on line 95.

I'm honestly finding this situation hilarious if only for the fact I have no idea what the heck is happening.
I've sent you a pm on the other board...

Original thread: https://forums.rpgmakerweb.com/threads/error-with-ktimers-script-by-kyonides.138047/