Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new option for credits saving #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azalty
Copy link

@azalty azalty commented Feb 12, 2021

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