Electric Heaters require no power despite permissionsNo Thanks
lightson.allowed
Granting that to a group or player allows them to toggle the lights using the /lights command. Note this is really an admin command.
lightson.freelights
Grant this to a player allows them to toggle their lights (and only lights that are switchable) on/off with no fuel needed.
This plugin is not intended to support VIP servers, I would suggest you use NightLantern if you want that feature. I'm tempted to remove the second permission entirely.
Removing that permission does not fix the issue with the heaters.
Sorry for any misunderstanding and thank you for your response here as well. I see you have already pushed out an update to remove the freelights permission as you intended, but I was not attempting to set up special permissions for any VIP members on my servers or requesting support for VIP permissions at all. I didn't neccessarily want anyone on my servers using this plugin except for me for balance reasons (I think it would be too easy in general), which is how I noticed the issue in the first place. I had installed this on one of my servers for my own personal use only.
While testing it out for myself I discovered some players were "complaining" that they could simply place down an electric heater and didn't have to use any electricity. The plugin does not seem to function as described with the heater entities. Even players that were not granted any permissions at all can still use heaters without any power source, although I did not notice any further issues with other entities on the server, just the heaters alone.
When the configuration file is set to "Heaters (true/false)": true (default), then all players on the server can place and use an electric heater without a power source connected even without any permissions from the plugin. The freelights permission has now been removed in version 1.6.11 as you are well aware, but that issue still persists.
I have deleted my config file and generated a brand new one using the latest version. When I disable the plugin entirely (oxide.unload LightsOn) or set ("Heaters (true/false)": false) in the config, the problem subsides immediately. This leads me to believe that this issue is not tied to the freelights permission itself but some other function within this plugin.
EDIT: Unsure why this thread was marked as "No Thanks", because this is a real glitch that alters the way heaters work by default for every connected player. I'm quite certain that heaters should always require a power source for an average player with no special permissions. It should probably be fixed. In the meantime I will simply set heaters to false in my config file.
This is not "Solved" or fixed, yet. I've tried to break this down as detailed as I possibly could, but I feel like there is still a misunderstanding somewhere here. I already mentioned the Heaters (true/false)": true configuration setting, which is where all of these issues stem from. Turning that off is the only solution so far that I can see.
I downloaded the latest version (v1.6.12) and deleted the 'oxide/config/LightsOn.json' config file once again. I let it generate an absolutely fresh file using the current default settings. Heaters are still set to true by default in the plugin configuration - and they still require no power when placed. Setting the option to false in the configuration will "fix" it, in a way, but this is just disabling support for heaters entirely and then the /lights command will no longer toggle them at all.
Setting it to false will restore the normal requirement of power but it's essentially just a bandaid fix and will require everyone who downloads this plugin to manually go in and change that setting. Not everyone will even know they should do that unless they happen to check out this thread. If the plugin is breaking heaters by default (which it does) then this option should either be patched to fix the issue or removed temporarily so that users who install this plugin don't break their heaters. Sorry for any inconvenience on your end but surely the feedback will help sort it out. I wish you luck. Cheers brother.
-Psyche
Funny I don't recall seeing that in the description before, otherwise you would have referenced that at the start of this thread, am I right? I don't think I missed it earlier, as I can read just fine, but anything is possible. I could be losing my mind. At any rate, I would have thought that the title alone would have prompted you to point that fact out from the start? Maybe not, maybe I am just an overcritical fool. But why would you waste time trying to figure out the issue and troubleshoot on your test instance as you stated earlier if this was all an "intentional" feature in the first place? That makes about zero sense to me. Nice try slipping that one past me. Lol. We can all just go back to pretending that you know what you're doing though. You must be one of those types that think you're incapable of making any mistakes.
By the way - the file is still not returning the correct language data for the nopermission value (ya know, the other thread I made two versions ago, where I gave you the code directly to fix it). If you don't want to improve your plugin, then simply don't. *shrug
I already moved on to something else. We are done here. Delete or disregard my support tickets, I have no interest in this any further.