Generator goes back to default values after server restart
Hi, I have an issue with this plugin where the generators keep bugging out and going back to default values after a server restart. This means that after every server restart I have to replace the generators to get them to supply the correct amount of power again. I have my config set like this:

{
"Electric Generator": {
"Setting for all World": "false"
},
"Electric Generator Attributes": {
"Amount of electricity (100 by default)": "1000000"
}
}

If any advice could be given that would be greatly appreciated. Thank you :)
Hello,
i'd say to set "Setting for all World": "false" to "Setting for all World": "true"
this way it will set all generators
it does it on load of plugin; so a plugin reload should set all generators on server restart
So the permissions dont work? Is there a fix for this?!
5bfd8085a3d0c.png YGBHawk
So the permissions dont work? Is there a fix for this?!

How did you come to that conclusion from the topic of this thread? :P

 

Becuase anyone using the permission is having their generators set back to 100 from 1000 after every restart... his idea is to just turn on global mode... so everyone gets the generator boost, meaning the permissions are not really useful at all...
I do agree with you there YGB. The permission is there to allow only specific players to benefit from this. turning on global mode just to prevent them from having to place them down again defeats the purpose of the permission imho. Any chance this can get looked at?
having the exact same issue on my servers @Wulf@FastBurst
Arthatus2018
having the exact same issue on my servers @Wulf@FastBurst

My generators are now set to 1200w each , i originally had them at 500 > 750>1000 but found that 1200 worked better as i use large bases with a lot of turrets ect, I have never had any problems with them going back to default but to set them at 1 million is (to me) pointless.

Hello,

{
  "Electric Generator": {
    "Setting for all World": false
  },
  "Electric Generator Attributes": {
    "Amount of electricity (100 by default)": 1000.0
  },
  "Version": {
    "Major": 1,
    "Minor": 0,
    "Patch": 0
  }
}​

 o.grant group default electricgeneratortweaker.tweak
Group 'default ' already has permission 'electricgeneratortweaker.tweak'​

ive set to 1000 and after restart he at 100... so same problem...

Tanki
Hello,

{
  "Electric Generator": {
    "Setting for all World": false
  },
  "Electric Generator Attributes": {
    "Amount of electricity (100 by default)": 1000.0
  },
  "Version": {
    "Major": 1,
    "Minor": 0,
    "Patch": 0
  }
}​

 o.grant group default electricgeneratortweaker.tweak
Group 'default ' already has permission 'electricgeneratortweaker.tweak'​

ive set to 1000 and after restart he at 100... so same problem...

What is the point of having the global setting "False" when you have already granted everyone the permission ?
Mine are set to 1200 and stay on 1200 after several wipes and many restarts.

 

my first test is granted to admin only but it's same, ive just try a different group...

Merged post

Hello, deleted all file, restarted the server and loaded plugin and no problem after 3 test, so its good, rust is really weird.....

Merged post

but if i'l set "Setting for all World" to false, i doesn't work, after a restart, "Amount of electricity (100 by default)" is set to 1000 in config file but ingame it's set to 100...

a screenshot for you watch his problem:
https://imgur.com/5TNp8NP

It's been a year, with no resolution to this..

here's why "it doesn't work":

The plugin checks (onentityspawned), then checks for permissions and then applies the modified value if player has perms.

This means that it only works with newly-placed test gens. Players with the perm need to re-deploy their test gens every time they login for this to be applied because of some missing steps. @FastBurst

if you look closely at the config above you will see that there are no SEPARATE permissions set out, If you set the power to whatever (mine is 1200) and the global to true and grant that permission to default it will always stay at 1200 and that is new test generators or old ones no matter how many times you restart the server.
If you have set out a scale for groups in the config and created permissions for them (which dont as yet exist except for the main one) i would be interested in seeing it , so could you post it ?

I've not added any permissions to the plugin. In that message you're asking why turn off the global mode when everyone has the permission. In that case, it would be better to do so. My point being, that i don't want to give everyone the permission, only a select few. So for me, global needs to be false. With it set up like that, the testgens revert back to normal values until re-deployed.

Tanki is the one who gave everyone the permission :)

Setting for all World to false it doesn't work...... after restart it's default value...
cqfd...