Skip to content

Added a new option for credits saving#58

Open
azalty wants to merge 1 commit into
shanapu:masterfrom
azalty:patch-5
Open

Added a new option for credits saving#58
azalty wants to merge 1 commit into
shanapu:masterfrom
azalty:patch-5

Conversation

@azalty

@azalty azalty commented Feb 12, 2021

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant