mirror of
https://github.com/MinetestForFun/quests.git
synced 2024-11-10 20:40:28 +01:00
10 lines
299 B
Lua
10 lines
299 B
Lua
|
|
||
|
function quests.show_message(t, playername, text)
|
||
|
if (quests.hud[playername].central_message_enabled) then
|
||
|
local player = minetest.get_player_by_name(playername)
|
||
|
cmsg.push_message_player(player, text, quests.colors[t])
|
||
|
minetest.sound_play("quests_" .. t, {to_player = playername})
|
||
|
end
|
||
|
end
|
||
|
|