minetest.setting_get

From Minetest Developer Wiki
Jump to navigation Jump to search


Mbox warning.png This page has been proposed for deletion for the following reason: " Deprecated in favour of minetest.Settings"
If you don't think that this page should be deleted, please explain why on the talk page.

Syntax

<source>minetest.setting_get("name")</source>

Description

Returns the value of an option stored in minetest.conf as a string.
Note that you can use settingtypes.txt to add your own settings to the configuration in the main menu.

Example

<source> local player_name = minetest.setting_get("name") </source>

See Also