Jump to content

Prestige - After Wipe, Prestige permission is not resetting

Pending 1.6.5

Nomad3211
Nomad3211

Posted

Hi there! 

I have setup Prestige levels and so far everything works amaz

ing!
1 small issue though: 
 - I granted access to "prestige kits" when a player prestiges. Each prestige level has its own kit. 
The issue  is that when the data file is deleted and server is wiped - all skill tree prestige perms reset normally, but the permission granted for the kit remains. I have to manually clear permissions for each kit group when server is wiping. 

Below is an example of the permission I am referring to. Specifically - kitcontroller.prestige#

"Prestige levels": {
      "1": {
        "Permissions [name : perm]": {
          "Receive <color=#738f61>6</color> Skill Points per Level!": "prestige.points.1",
          "No <color=#738f61>XP Loss</color> on death": "prestige.xploss.1",
          "Earn <color=#738f61>2x</color> more experience": "prestige.xpgain.1",
          "<color=#738f61>100%</color> more rested xp": "prestige.restedxp.1",
          "<color=#738f61>+1</color> presets": "prestige.presets.1",
          "<color=#738f61>Free</color> Respec": "prestige.respec.1",
          "Prestige 1 <color=#738f61>/kit</color>": "kitcontroller.prestige1"  <<-----  this is the problem child. 
        },

Is it possible to have the kit perm removed when data file is deleted for wipe? 
or am I missing a setting somewhere that handles this? 

* Worth noting - I have a mid month wipe, where only map is reset. Skill tree is kept, so I dont have the clear on wipe setting enabled.* 

Thanks in advance! 

 

 

 

imthenewguy

Posted

4 hours ago, Nomad3211 said:

Hi there! 

I have setup Prestige levels and so far everything works amaz

ing!
1 small issue though: 
 - I granted access to "prestige kits" when a player prestiges. Each prestige level has its own kit. 
The issue  is that when the data file is deleted and server is wiped - all skill tree prestige perms reset normally, but the permission granted for the kit remains. I have to manually clear permissions for each kit group when server is wiping. 

Below is an example of the permission I am referring to. Specifically - kitcontroller.prestige#

"Prestige levels": {
      "1": {
        "Permissions [name : perm]": {
          "Receive <color=#738f61>6</color> Skill Points per Level!": "prestige.points.1",
          "No <color=#738f61>XP Loss</color> on death": "prestige.xploss.1",
          "Earn <color=#738f61>2x</color> more experience": "prestige.xpgain.1",
          "<color=#738f61>100%</color> more rested xp": "prestige.restedxp.1",
          "<color=#738f61>+1</color> presets": "prestige.presets.1",
          "<color=#738f61>Free</color> Respec": "prestige.respec.1",
          "Prestige 1 <color=#738f61>/kit</color>": "kitcontroller.prestige1"  <<-----  this is the problem child. 
        },

Is it possible to have the kit perm removed when data file is deleted for wipe? 
or am I missing a setting somewhere that handles this? 

* Worth noting - I have a mid month wipe, where only map is reset. Skill tree is kept, so I dont have the clear on wipe setting enabled.* 

Thanks in advance! 

 

 

 

How did you wipe skill tree if the plugin didnt wipe it?

Nomad3211

Posted

On forced wipe day, I just delete the skill tree data file. 

If I allow the plugin to handle wipes, it will reset skill tree data when I run a map wipe. 
Which is what Im trying to avoid. 

Forced wipe - monthly - everything including skill tree is wiped.
Map wipe - biweekly - only the map is to be wiped (Trying to save st data) 

Hope that makes sense

 

imthenewguy

Posted (edited)

1 hour ago, Nomad3211 said:

On forced wipe day, I just delete the skill tree data file. 

If I allow the plugin to handle wipes, it will reset skill tree data when I run a map wipe. 
Which is what Im trying to avoid. 

Forced wipe - monthly - everything including skill tree is wiped.
Map wipe - biweekly - only the map is to be wiped (Trying to save st data) 

Hope that makes sense

 

That's your issue. Since you've simply deleted the data file, Skill Tree could not remove the perms.

Run the stresetalldata console command next time. This will delete all player data and handle it safely.

Edited by imthenewguy
  • Love 1
Nomad3211

Posted

Aaaaaah, okay! 
Thank you so much! 

1.7m

Downloads

Total number of downloads.

8.1k

Customers

Total customers served.

121.9k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.