-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[CSM] Add settings API #5454
Comments
Also |
sorry, but it's a bad usecase to use settings to get player name. We will have a lcoalplayer reference instead for this when roadmap 2 will be finished |
Are there any usecases for this apart from mod settings? Might be worth only letting CSM access settings starting with |
You may want to get the smooth lighting setting and whatnot. |
@HybridDog i think we can offer setting getter to mods, but not setting setter |
This issue is about the getter. |
We want to make sure mods (sent by the server) can't scrape all user settings and send them to the server. So indeed what @rubenwardy said, you probably only want to allow a few settings to be read, if any. |
That's not official documentation of the function, that may just be copy-paste. |
What if mods can only read specific settings plus all settings with names that are modname.settingname? |
Mods may have settings that control things that need to be secret on a server. Likewise we need to be careful about accessing other settings a client should not know and could abuse. |
If it's a secret then don't send it to the client. |
Related: #5941 |
1+ year bump, any core dev support? |
The link in the first post is outdated, here's a permalink: minetest/doc/client_lua_api.txt Lines 100 to 101 in b6adb7f
|
The future of CSM is highly uncertain at the moment. I feel it's best to wait until we know SSCSM is going ahead before adding new CSM features (as it may be wasted work). So i am 👎 until SSCSM progresses. |
l noticed that minetest.setting_get doesn't work.
l need this function to get the player name and other settings.
It's executed at load time, so according to the documentation it should work.
The text was updated successfully, but these errors were encountered: