aboutsummaryrefslogtreecommitdiff
path: root/data/mods/default
diff options
context:
space:
mode:
Diffstat (limited to 'data/mods/default')
-rw-r--r--data/mods/default/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 6512f55eb..c6f039385 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -18,6 +18,8 @@
-- minetest.register_on_newplayer(func(ObjectRef))
-- minetest.register_on_respawnplayer(func(ObjectRef))
-- ^ return true in func to disable regular player placement
+-- minetest.setting_get(name)
+-- minetest.setting_getbool(name)
--
-- Global objects:
-- minetest.env - environment reference
@@ -1313,6 +1315,9 @@ minetest.register_on_respawnplayer(function(player)
-- return true
end)
+-- Example setting get
+print("max_users = " .. dump(minetest.setting_get("max_users")))
+
--
-- Done, print some random stuff
--