I would move every file there that is not a .js file out of that folder and somewhere away from your project. They are not needed/used, and you sure don't want to be bloating up your deployed file size by including stuff that's not needed. And what in the world has happened with your plugins folder? You have a data folder AND a js folder inside your plugins folder? That can't be right either. It seems you may have extracted a demo into your plugins folder rather than into a completely separate project. That folder is a real mess, and you need to figure out what's needed and what isn't, and clean it up. It may just be easier to create a folder completely away from your project, and move EVERYTHING in the plugins folder into there, and ONLY move the TerraxLighting.js and TerraxLightingQuasiABS.js plugins back. If there is an image to be used for the flashlight, find it and make sure it's in the correct folder (I'm guessing img/pictures but I haven't used the plugin before so that's a complete guess).
As to your issue (it could be caused by some of the above, but let's take a look at other things as well) ...
Look at your common event. You're saying if the party has the flashlight and the flashlight is on, then turn it off. But if the party DOESN'T have the flashlight, THEN turn it on. That can't be what you want to happen - the flashlight will never be turned on.
In fact, you don't even need the If Party has Flashlight test in that common event. Both the places that call the common event will not even run if the flashlight isn't in inventory. Your parallel event is conditioned by the party having the flashlight, so if it's not in inventory, that event won't even run. And the other place it's called is from the flashlight item itself - obviously, if you don't have the flashlight, then you can't use it from inventory. So if you're in that common event, you already know the party
does have the flashlight, so it's a waste of time checking.
You're better off making it look something like this (this is the entire common event, not just a portion, so remove everything you've got and make it look like the below):
Code:
If: Flashlight is ON
Control Switches: Flashlight = OFF
Plugin Command: Light radius 0 #FFFFFF
Plugin Command: Flashlight off
Else
Control Switches: Flashlight = ON
Plugin Command: Light Radius 0 #FFFFFF
Plugin Command: Flashlight on 8 12 #FFFFFF
End
Now I don't know if the case has to be exact with this plugin, but in one case you have
Light Radius (upper case R), and in the other you have
Light radius (lower case r). Make sure those are both allowed by the plugin, and if not, change them to be correct.