I have configured my server to the max and created the tebex shop but I can't for the life of me work out how to grant vip access automatically via tebex if someone purchases a VIP. My other plugins rely on oxide.grant which is simple to setup, how do I go about granting auto immunity from AutoPurge when purchasing said packages?
I have tried to read as much as I can but haven't found the answer yet
VIP Bypass
I've set this, would this be correct? I have set the Vip packages to assign either vip1, vip2 and vip3 in betterchat
{
"Purge Settings": [
{
"Permission": "",
"Lifetime": "7d"
}
{
"Permission": "vip1",
"Lifetime": "none"
}
{
"Permission": "vip2",
"Lifetime": "none"
}
{
"Permission": "vip3",
"Lifetime": "none"
}
],
"Purge Timer Frequency": 900,
"Purge On Startup": false,
"Entities Per Step": 512,
"Purge Building Blocks": true,
"Purge Deployables": true,
"Purge Sleepers": true,
"Use Logs": true
}
Hey, this is using permissions which means you'd have to grant these. If you write "Permission": "autopurge.nopurge" and then say grant it to the vip groups, it will work.
Do you mean
oxide.grant group Vip1 autopurge.nopurge
oxide.grant group Vip2 autopurge.nopurge
oxide.grant group Vip3 autopurge.nopurge
And change a Permision line to read
"Permission": "autopurge.nopurge",
"Lifetime": "none"
Merged post
Is this correct please
{
"Purge Settings": [
{
"Permission": "",
"Lifetime": "7d"
}
{
"Permission": "autopurge.nopurge",
"Lifetime": "none"
}
],
"Purge Timer Frequency": 900,
"Purge On Startup": false,
"Entities Per Step": 512,
"Purge Building Blocks": true,
"Purge Deployables": true,
"Purge Sleepers": true,
"Use Logs": true
}
Yes, that is what I mean. Don't forget "," in configuration after } in 7d config - if you are unsure how to work with JSON, try JSON editors.
Thansk Misticos
I did try an online editor and put the comma in but it keep giving me a darn error :(
I know, I'm crap haha
{
"Purge Settings": [{
"Permission": "",
"Lifetime": "7d",
} {
"Permission": "autopurge.nopurge",
"Lifetime": "none"
}],
"Purge Timer Frequency": 900,
"Purge On Startup": false,
"Entities Per Step": 512,
"Purge Building Blocks": true,
"Purge Deployables": true,
"Purge Sleepers": true,
"Use Logs": true
}
Results
Error: Parse error on line 4: ... "Lifetime": "7d", } { "Permission": ----------------------^ Expecting 'STRING', got '}'
Merged post
Got the above to correctly accept the lines
{
"Purge Settings": [
{
"Permission": "",
"Lifetime": "7d"
},
{
"Permission": "autopurge.nopurge",
"Lifetime": "none"
}
],
"Purge Timer Frequency": 900,
"Purge On Startup": false,
"Entities Per Step": 512,
"Purge Building Blocks": true,
"Purge Deployables": true,
"Purge Sleepers": true,
"Use Logs": true
}
However, when trying to add
oxide.grant group Vip1 autopurge.nopurge
oxide.grant group Vip2 autopurge.nopurge
oxide.grant group Vip3 autopurge.nopurge
It comes back with
Permission 'autopurge.nopurge' doesn't exist
What am I missing please, banging my head against the wall with this one, last pluging out of 15 I need to configure and really important as it's part of a paid package thye can buy
Merged post
!!!!Please ignore the last message, my server, although very very high spec, had a funny 5 minutes and would not populate the changes.
All good now, thanks for the help