minetest.setting_setbool

From Minetest Developer Wiki
Jump to: navigation, 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.

Contents

Syntax

minetest.setting_setbool(name, value)


Description

Changes a boolean of the minetest configuration.

  • name: The name of the setting (a string)
  • value: The value of the boolean setting, either true or false.

Example

This code sets the setting “enable_pvp” to false, meaning that players can't hurt each other anymore:

minetest.setting_setbool("enable_pvp", false)

See also

minetest.setting_getbool


Mbox important.png This article is incomplete.
Please help expand this article to include more useful information.
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox