Improve log messages (#422)
- Add log messages wherever required/useful - Remove unnecessary log messages and print statements - Convert print statements to minetest.log - Fix incorrect log level for some messages - Trivial code-style fixes
This commit is contained in:
parent
21e7daa183
commit
5eb5d3311a
18 changed files with 71 additions and 49 deletions
|
@ -99,6 +99,7 @@ ctf.register_on_killedplayer(function(victim, killer)
|
|||
bountied_player = nil
|
||||
|
||||
local msg = killer .. " has killed " .. victim .. " and received the prize!"
|
||||
minetest.log("action", msg)
|
||||
minetest.chat_send_all(msg)
|
||||
hud_score.new(killer, {
|
||||
name = "ctf_bounty:prize",
|
||||
|
@ -118,6 +119,7 @@ minetest.register_chatcommand("place_bounty", {
|
|||
end
|
||||
|
||||
bounty_player(target)
|
||||
minetest.log("action", name .. " places bounty on " .. target)
|
||||
return true, "Put bounty on " .. target
|
||||
end
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue