You can update it through commands. The reason the config can’t really be edited while the server is up is because the entire thing is loaded into memory. I’m pretty sure I implemented a reload command, “/vr reload” should allow offline editing, but I’d suggest just doing it offline.
how does the percent chance work exactly? I’ve read what’s on the website like 4-5 times and still don’t understand it XD
For example for normal voting I’d like to announce player has voted and received rewards, then execute a command to give them a specific mod item. That I got it, But I also want that each time they vote, they have like a 10% chance to get an extra item, how can this be done in the config?
And then just add that to the list of schemas to run. The Chance tag applies to the schema as a whole, so in the above schema, there is a %10 chance it will be run (If it’s actually called).
Ahh I see, in the auto generated config, it didn’t have the Name= “test” part.
Schemas= { items= {
Type= “ITEM”
it looked like this ^
So I assumed the italized “items” there is the schema name, no?
Hmmm for some reason the plugin won’t work when i change schemas.
Voting= { #The Voting Schemas to activate when a player votes
Schemas= [
“items”,
“announcements”
]
}
OfflineVoting= {
Enabled= true #The Voting Schemas to save when a known player votes offline. Setting this to ‘null’ or removing it will #cause the offline vote schemas to be the same as the ones in the voting section.
Schemas= [
“items”,
“announcements”
]
if i change “items” to “commands”, the plugin won’t run. That’s the only one I’ve tested so far
can’t find the exact error message on the console,
here’s the config, and yes the config not the example config
it still has the items schema, like shown on my previous reply above
if you run it like this, it works. but if you change items to commands, it doesn’t
using the latest versions of both starAPI and voteright, nuvotifier as well