forked from Mirrorlandia_minetest/emeraldbank
title instead chat (part 2)
This commit is contained in:
parent
5fe12e55ab
commit
3070c3f0ca
@ -53,10 +53,10 @@ core.register_chatcommand("pay", {
|
|||||||
pitch = 1.0,
|
pitch = 1.0,
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
core.chat_send_player(name, S("Not enough Emeralds in your account") )
|
mcl_title.set(player1, "subtitle", {text=S("Not enough Emeralds in your account"), color="dark_red"})
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
core.chat_send_player(name, S("Invalid pay") )
|
mcl_title.set(player1, "subtitle", {text=S("Invalid pay"), color="dark_red"})
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
@ -34,7 +34,7 @@ core.register_globalstep(function(dtime)
|
|||||||
for _, player in ipairs(core.get_connected_players()) do
|
for _, player in ipairs(core.get_connected_players()) do
|
||||||
if not player or player.is_fake_player then return end
|
if not player or player.is_fake_player then return end
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
core.chat_send_player(name, S("You have earned @1 emeralds in your bank account!", income_count) )
|
mcl_title.set(player, "subtitle", {text=S("You have earned @1 emeralds in your bank account!", income_count), color="green"})
|
||||||
emeraldbank.add_emeralds(player, income_count)
|
emeraldbank.add_emeralds(player, income_count)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user