Feature: clan blocking (lord-server/lord#1396). Closes lord-server/lord#1372.
* JSON errors handling in clans.storage * Added clan field is_blocked. /clans.list shows. * /clans.show is smarter then was * Clan API: can't add player if clan is blocked * /clans.add_player is_blocked handle * clan_storage.get returns copy of table now * Clan API: new funcs is_blocked, toggle_block * Added /clans.toggle_block chat command * Some type hints enchancements * Fixed callback type hints
This commit is contained in:
@@ -62,6 +62,8 @@ minetest = {}
|
|||||||
--- * The escape sequence sets the text color to `color`
|
--- * The escape sequence sets the text color to `color`
|
||||||
---
|
---
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3107-L3109)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3107-L3109)
|
||||||
|
---@param color string @ColorString
|
||||||
|
---@return string
|
||||||
function minetest.get_color_escape_sequence(color) end
|
function minetest.get_color_escape_sequence(color) end
|
||||||
--- * Equivalent to:
|
--- * Equivalent to:
|
||||||
--- `minetest.get_color_escape_sequence(color) ..
|
--- `minetest.get_color_escape_sequence(color) ..
|
||||||
@@ -69,6 +71,9 @@ function minetest.get_color_escape_sequence(color) end
|
|||||||
--- minetest.get_color_escape_sequence("#ffffff")`
|
--- minetest.get_color_escape_sequence("#ffffff")`
|
||||||
---
|
---
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3110-L3114)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3110-L3114)
|
||||||
|
---@param color string @ColorString
|
||||||
|
---@param message string
|
||||||
|
---@return string
|
||||||
function minetest.colorize(color, message) end
|
function minetest.colorize(color, message) end
|
||||||
--- * `color` is a ColorString
|
--- * `color` is a ColorString
|
||||||
--- * The escape sequence sets the background of the whole text element to
|
--- * The escape sequence sets the background of the whole text element to
|
||||||
@@ -378,6 +383,8 @@ function minetest.register_lbm(lbm_definition) end
|
|||||||
--- mapgens. See [Mapgen aliases] section above.
|
--- mapgens. See [Mapgen aliases] section above.
|
||||||
---
|
---
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4486-L4488)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4486-L4488)
|
||||||
|
---@param alias string @itemstring
|
||||||
|
---@param original_name string @itemstring
|
||||||
function minetest.register_alias(alias, original_name) end
|
function minetest.register_alias(alias, original_name) end
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4489-L4489)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4489-L4489)
|
||||||
function minetest.register_alias_force(alias, original_name) end
|
function minetest.register_alias_force(alias, original_name) end
|
||||||
@@ -2040,6 +2047,8 @@ function minetest.get_name_from_content_id(content_id) end
|
|||||||
--- * Example: `parse_json("[10, {\"a\":false}]")`, returns `{10, {a = false}}`
|
--- * Example: `parse_json("[10, {\"a\":false}]")`, returns `{10, {a = false}}`
|
||||||
---
|
---
|
||||||
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5666-L5671)
|
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5666-L5671)
|
||||||
|
---@param string string
|
||||||
|
---@param nullvalue any
|
||||||
function minetest.parse_json(string, nullvalue) end
|
function minetest.parse_json(string, nullvalue) end
|
||||||
--- Returns a string or `nil` and an error
|
--- Returns a string or `nil` and an error
|
||||||
--- message.
|
--- message.
|
||||||
|
|||||||
Reference in New Issue
Block a user