Balance max cap not workingFixed
Config below.  Able to continue to sell on GUI shop and earn rewards via other plugins and balance increased over 1m.  Data below as well.

{
  "Allow negative balance for accounts (true/false)": false,
  "Maximum balance for accounts (0 to disable)": 1000000,
  "Remove unused accounts (true/false)": true,
  "Starting money amount (0 or higher)": 250
}
​

{
  "Balances": {
    "76561197981725913": 67647.0,
    "76561198019139513": 1162112.0,
    "76561197969223702": 239984.0,
    "76561197995290390": 108795.25,
    "76561197965937711": 3680.75,
    "76561198443167917": 52166.0,
    "76561197980089835": 50254.0,
    "76561197982891252": 1152703.0,
    "76561198448531449": 50476.0,
    "76561198059092710": 5394.0,
    "76561197965555725": 55375.0,
    "76561198091560937": 193466.0,
    "76561197967792636": 50589.0,
    "76561198093928837": 51748.0,
    "76561197985936318": 23780.0,
    "76561197993479569": 290361.0,
    "76561197989755583": 101033.75,
    "76561198122105687": 50250.0,
    "76561198011251440": 76230.0,
    "76561198964479840": 812.0,
    "76561199018091549": 50482.0,
    "76561198798156474": 50256.0,
    "76561198360573680": 62293.0,
    "76561198801541780": 50250.0,
    "76561198864674964": 50250.0,
    "76561198293611791": 49250.0,
    "76561198153521056": 16153.0,
    "76561198983607096": 11916.0,
    "76561198035799190": 51236.0,
    "76561198200905127": 50132.0,
    "76561198183902659": 49819.0,
    "76561198147317343": 50250.0,
    "76561198092663050": 131550.0,
    "76561198046406385": 50454.0,
    "76561197962760504": 397582.5,
    "76561198023600737": 60196.0,
    "76561199013230731": 1488.0,
    "76561198953503344": 50420.0,
    "76561198074317240": 14078.0,
    "76561198078480386": 1763.0,
    "76561199012226043": 20534.0,
    "76561198963847019": 36961.0,
    "76561197963068908": 92114.0,
    "76561197971357739": 27799.5,
    "76561198175960071": 49570.0,
    "76561198424159461": 50838.0
  }
}​
At the moment it only handles it during startup, but it should really be with depositing and such as well. Should be fixed for the next version.
10-4 Thanks for taking a look.  I'm guessing a better option would be for the various plugin devs using econ to check the balance cap and stop players from performing actions that would put them over, but that also sounds like herding a lot of cats.
5e378ecf3c63f.jpg sutonimh
10-4 Thanks for taking a look.  I'm guessing a better option would be for the various plugin devs using econ to check the balance cap and stop players from performing actions that would put them over, but that also sounds like herding a lot of cats.

I'm not sure that would be better, just more calls. Pretty simple to make the plugin respect the cap.

This post is my hero. Been having the same issue. Thx Wulf! Keep up the great work.
Thanks for taking a look Wulf.  Just updated to the new version and after some testing still seems like players can exceed wallet with GUIShop on my server.  Haven't tested with anything else yet.  Current config below. Thoughts?
{
  "Allow negative balance for accounts": false,
  "Maximum balance for accounts (0 to disable)": 1000000,
  "Remove unused accounts": true,
  "Starting money amount (0 or higher)": 250,
  "Wipe balances on new save file": false
}​
Derp, missed part in the calculation. I'll update it again shortly, thanks.
Locked automatically