1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00
This commit is contained in:
TheEt1234 2025-08-08 22:44:11 +02:00
parent 5f770b32f0
commit 74a4801e29

View file

@ -43,7 +43,17 @@ end
-- Chat command handler
--
core.chatcommands = core.registered_chatcommands -- BACKWARDS COMPATIBILITY
-- Unsure how to handle pairs()
core.chatcommands = setmetatable({}, {
__index=function (_, k)
core.log("warn", "core.chatcommands is deprecated, use core.registered_chatcommands instead")
return core.registered_chatcommands[k]
end,
__newindex=function (_, k, v)
core.log("warn", "core.chatcommands is deprecated, use core.registered_chatcommands instead")
core.registered_chatcommands[k] = v
end,
})
local msg_time_threshold =
tonumber(core.settings:get("chatcommand_msg_time_threshold")) or 0.1