This PR adds a new option for credits saving: 'Save on each transaction and on player disconnect'
This is meant to fix an exploit where players would intentionally crash the server to duplicate credits.
Since crashing the server doesn't call OnClientDisconnect(), with some knowledge you could duplicate credits. I won't exactly tell how it works because this can be used on pretty much every store/shop/credits system.
This might be heavier for the server, please only change if you experience recurring crashes and are afraid of potential credits loss/exploits due to this. but I advise running this anyways.
Player disconnect saves could be removed since we already save on each transaction, but I left it as it was since we never know.
This PR adds a new option for credits saving: 'Save on each transaction and on player disconnect'
This is meant to fix an exploit where players would intentionally crash the server to duplicate credits. Since crashing the server doesn't call OnClientDisconnect(), with some knowledge you could duplicate credits. I won't exactly tell how it works because this can be used on pretty much every store/shop/credits system.
This might be heavier for the server,
please only change if you experience recurring crashes and are afraid of potential credits loss/exploits due to this.but I advise running this anyways.Player disconnect saves could be removed since we already save on each transaction, but I left it as it was since we never know.