* `minetest.disconnect()`
* Disconnect from the server and exit to main menu.
* Returns `false` if the client is already disconnecting otherwise returns `true`.
-* `minetest.take_screenshot()`
- * Take a screenshot.
* `minetest.get_server_info()`
* Returns [server info](#server-info).
* `minetest.send_respawn()`
return 1;
}
-int ModApiClient::l_take_screenshot(lua_State *L)
-{
- Client *client = getClient(L);
- client->makeScreenshot();
- return 0;
-}
-
int ModApiClient::l_get_privilege_list(lua_State *L)
{
const Client *client = getClient(L);
API_FCT(get_server_info);
API_FCT(get_item_def);
API_FCT(get_node_def);
- API_FCT(take_screenshot);
API_FCT(get_privilege_list);
API_FCT(get_builtin_path);
API_FCT(get_language);
// get_node_def(nodename)
static int l_get_node_def(lua_State *L);
- // take_screenshot()
- static int l_take_screenshot(lua_State *L);
-
// get_privilege_list()
static int l_get_privilege_list(lua_State *L);