Skip to content

Commit

Permalink
Mention data type for get/set_attribute in docs (#5884)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 authored and nerzhul committed Jun 3, 2017
1 parent 1b83b0a commit e91ffa0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/lua_api.txt
Expand Up @@ -3217,8 +3217,11 @@ This is basically a reference to a C++ `ServerActiveObject`
* `11`: bubbles bar is not shown
* `set_attribute(attribute, value)`:
* Sets an extra attribute with value on player.
* If value is nil, remove attribute from player.
* `get_attribute(attribute)`: returns value for extra attribute. Returns nil if no attribute found.
* `value` must be a string.
* If `value` is `nil`, remove attribute from player.
* `get_attribute(attribute)`:
* Returns value (a string) for extra attribute.
* Returns `nil` if no attribute found.
* `set_inventory_formspec(formspec)`
* Redefine player's inventory form
* Should usually be called in `on_joinplayer`
Expand Down

0 comments on commit e91ffa0

Please sign in to comment.