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

Update away from files based storage #1

Open
bell07 opened this issue Jan 31, 2018 · 0 comments
Open

Update away from files based storage #1

bell07 opened this issue Jan 31, 2018 · 0 comments

Comments

@bell07
Copy link

bell07 commented Jan 31, 2018

Thanks for this great mod at the first!

I see the mod is not updated since years, in the meantime the minetest does support mod-meta storage and player-meta storage. Using io.open() no longer really welcome. So this mod needs an update for them.

the player does have get_attribute() and set_attribute(), but I do not recommend it to use for money because only available if the player is logged in. (No payments possible to offline users)

The beter way is trough local mod_storage = minetest.get_mod_storage() and then mod_storage:set_string(money_"..name, value)

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

No branches or pull requests

1 participant