Jump to content

can you have it after wipe it deletes palyer data

Pending 1.0.12

MrDuck14
MrDuck14

Posted

I have been noticing that after wipe player data doesn't wipe so players that didn't use the wipe before call recycler right after and by the time I reset the data give them another recycler they have 2 is there a way after every wipe to erase player data I also notice I have a temp wipe vip for the month for players by the next wipe when a player is no longer a vip still give them a redeemable recycler don't know if this can be exploited to the others to have two recyclers the original person can't use it but they can give it to a vip that can place and use haven't seen it yet but thinking that can be done thank you

imthenewguy

Posted

"Allow for recycler credits to carry over across a map wipe?": false

MrDuck14

Posted (edited)

I already have it false and when I look at the data file it shows previous VIP's and it show available 1

Screenshot 2025-01-06 070229.png

Edited by MrDuck14
imthenewguy

Posted

Recyclers are automatically given at the start of the wipe to all with the permission.

If that setting is set to false, it wont give them an additional recycler to redeem.
 

        void OnNewSave(string filename)
        {
            List<ulong> delete_users = new List<ulong>();
            foreach (KeyValuePair<ulong, PlayerInfo> kvp in pcdData.pentity)
            {
                kvp.Value.recycler_ids.Clear();
                if (permission.UserHasPermission(kvp.Key.ToString(), "personalrecycler.use") || permission.UserHasPermission(kvp.Key.ToString(), "personalrecycler.admin"))
                {
                    if (kvp.Value.available_recyclers < 0) kvp.Value.available_recyclers = 0;
                    if (config.recycler_credits_persist) kvp.Value.available_recyclers = kvp.Value.available_recyclers + config.start_recyclers;
                    else kvp.Value.available_recyclers = config.start_recyclers;
                }
                else if (kvp.Value.available_recyclers == 0) delete_users.Add(kvp.Key);
            }
            pcdData.private_recyclers.Clear();
            if (delete_users.Count > 0) foreach (var id in delete_users) pcdData.pentity.Remove(id);
            SaveData();
        }

 

MrDuck14

Posted (edited)

Was bringing it to your attention I had someone redeem a recycler but they couldn't place it down because they was a default player here is  a picture on the data file this player doesn't have vip anymore but it still shows available recycler it didn't even clear the name I will try again next wipe and see what shows up

Screenshot 2025-01-07 050826.png

Edited by MrDuck14
MrDuck14

Posted

hello when decayed bases happen are the recyclers supposed to fall or stay in the air I have check for floating to destroy when floor entity is removed 

Screenshot 2025-01-20 004958.png

imthenewguy

Posted

Was it set to that before the recycler was deployed?

MrDuck14

Posted (edited)

yes I set everything when I purchase the plugin since October 2024 just never noticed until now just letting you know the issues and still will find out the next wipe if the recyclers will reset from a non VIP

Edited by MrDuck14
MrDuck14

Posted (edited)

Update I guess the recycler falls but the whole base has to be decayed

Edited by MrDuck14
MrDuck14

Posted

update data still shows after wipe this player doesn't have VIP after wipe still shows available recycler

 

Screenshot 2025-02-06 230642.png

imthenewguy

Posted

2 hours ago, MrDuck14 said:

update data still shows after wipe this player doesn't have VIP after wipe still shows available recycler

 

Screenshot 2025-02-06 230642.png

Do you have it set to wipe recycler credits on wipe? Not having VIP simply stops them from getting more recyclers.

MrDuck14

Posted

yes same setting as of jan 6 post I sent 

MrDuck14

Posted

this player has not been on the server for 2 wipes but still shows available recycler 

Screenshot 2025-02-07 023547.png

Screenshot 2025-02-07 023947.png

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.