mirror of
https://github.com/MinetestForFun/quests.git
synced 2025-06-30 15:30:25 +02:00
add play sound in function
This commit is contained in:
@ -7,6 +7,9 @@ if rawget(_G, "cmsg") then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
function quests.show_message(...)
|
function quests.show_message(t, playername, text)
|
||||||
|
if (quests.hud[playername].central_message_enabled) then
|
||||||
|
minetest.sound_play("quests_" .. t, {to_player = playername})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user