I've developed a chestshop Skript that sets a yaml variable (shop=true) when a player opens a chest shop, and then checks on inventory click to verify shop=true, but a very tiny few (3 so far) players have been able to bypass this and steal from my chest shop. Can anyone offer insight into how I can prevent this or a potential flaw in my approach?
Here's the code: https://pastebin.com/Lka46E9f
The main part sets a variable on this action (line 99):
Then later on line 131 i do the transaction if shop=true within:
Should I be adding ticks to wait between file writing? Are there client mods people can use to bypass chest clicks?
Thank you if you read this and can offer any insights or directions for me to investigate more. I'm honestly not sure how to even debug the issue at this point.
Here's the code: https://pastebin.com/Lka46E9f
The main part sets a variable on this action (line 99):
code_language.skript:
on rightclick on a chest or trapped chest: # works with both types of chests
Then later on line 131 i do the transaction if shop=true within:
code_language.skript:
on inventory click:
Should I be adding ticks to wait between file writing? Are there client mods people can use to bypass chest clicks?
Thank you if you read this and can offer any insights or directions for me to investigate more. I'm honestly not sure how to even debug the issue at this point.