Bank doesn't store changes

The bank doesn't store anything anymore. I admit I did not figure out every detail of the code, but new line "(!onlinePlayers.ContainsKey (player))" felt a bit off, so I changed it to (onlinePlayers.ContainsKey (player)) and it did work again.
Since not assigning those values and still calling view.PlayerOpenLoot(player) seems to cause that issue, propably an early return might be a good fix.

currently:

                profile.open = true;
                if (!onlinePlayers.ContainsKey (player)) {
                    onlinePlayers [player].View = view;
                    onlinePlayers [player].Target = target;
                }

                timer.In (0.1f, delegate () {
                    view.PlayerOpenLoot (player);
                });

suggestion:

                profile.open = true;
                if (!onlinePlayers.ContainsKey (player)) { return;}
                onlinePlayers [player].View = view;
                onlinePlayers [player].Target = target;

                timer.In (0.1f, delegate () {
                    view.PlayerOpenLoot (player);
                });
Yea. Had the same issue as you where keeping in Banks will just make the item goes missing whenever a player opens it.

Merged post

I have revert back to the older version. And my bank works normally. FYI. ☺️

I know. Pretty solid solution if you don't want to touch code yourself.

I still prefer my fix since you can run into the same situation if you reload the old plugin while a player is in the bank.

rustkoyak
Yea. Had the same issue as you where keeping in Banks will just make the item goes missing whenever a player opens it.

Merged post

I have revert back to the older version. And my bank works normally. FYI. ☺️

I reverted back to the old code myself and all is working. I would really like to see this plugin rock and roll. I might after I get moved dive into this plugin a bit. I would like to see this truly be a top plugin for the game as I allow users to move there limited bank from one wipe to another. I use it like a savings account. 

I'll be taking a look again when able. Calytic hasn't had a lot of time for plugins as his focus has been on the uMod core and site.
5e13a8d5b2bc5.jpg Wulf
I'll be taking a look again when able. Calytic hasn't had a lot of time for plugins as his focus has been on the uMod core and site.
Understood, no issues here. I've reverted back to version v1.0.52