Add achievement notifications
parent
6ee151759b
commit
928c971193
7
init.lua
7
init.lua
|
@ -64,6 +64,13 @@ minetest.register_on_dieplayer(function(ObjectRef, reason)
|
|||
end
|
||||
end)
|
||||
|
||||
-- Send achievements
|
||||
if awards then
|
||||
awards.register_on_unlock(function(name, def)
|
||||
matrix.send(http_api, name .. "has made the achievement [" .. def.title .. "]")
|
||||
end)
|
||||
end
|
||||
|
||||
-- Start Matrix sync
|
||||
local names = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue