minetest.setting_setbool

From Minetest Developer Wiki
Jump to: navigation, search

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



This article is incomplete.


Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox