Fix errors in previous commits
This commit is contained in:
parent
dc6c86d98c
commit
0abd12b8a1
3 changed files with 6 additions and 11 deletions
|
@ -99,7 +99,7 @@ minetest.registered_chatcommands["msg"].func = function(name, param)
|
||||||
end
|
end
|
||||||
core.log("action", "PM from " .. name .. " to " .. sendto
|
core.log("action", "PM from " .. name .. " to " .. sendto
|
||||||
.. ": " .. message)
|
.. ": " .. message)
|
||||||
core.chat_send_player(sendto, minetest.colorize(#00FF55,"PM from " .. name .. ": "
|
core.chat_send_player(sendto, minetest.colorize("#00FF55",
|
||||||
.. message))
|
"PM from " .. name .. ": " .. message))
|
||||||
return true, "Message sent."
|
return true, "Message sent."
|
||||||
end
|
end
|
||||||
|
|
|
@ -24,9 +24,6 @@ local function bounty_player(target)
|
||||||
|
|
||||||
bountied_player = target
|
bountied_player = target
|
||||||
|
|
||||||
-- if minetest.global_exists("irc") then
|
|
||||||
-- irc:say("Player " .. bountied_player .. " has a bounty on their head!")
|
|
||||||
-- end
|
|
||||||
minetest.after(0.1, announce_all)
|
minetest.after(0.1, announce_all)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -49,7 +46,7 @@ local function bounty_find_new_target()
|
||||||
-- bounty_score = -----------, or 500 (whichever is lesser)
|
-- bounty_score = -----------, or 500 (whichever is lesser)
|
||||||
-- 10000
|
-- 10000
|
||||||
bounty_score = (pstat.score * (pstat.kills / pstat.deaths)) / 10000
|
bounty_score = (pstat.score * (pstat.kills / pstat.deaths)) / 10000
|
||||||
if bounty_score > 500
|
if bounty_score > 500 then
|
||||||
bounty_score = 500
|
bounty_score = 500
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -81,9 +78,6 @@ ctf.register_on_killedplayer(function(victim, killer)
|
||||||
bountied_player = nil
|
bountied_player = nil
|
||||||
|
|
||||||
local msg = killer .. " has killed " .. victim .. " and received the prize!"
|
local msg = killer .. " has killed " .. victim .. " and received the prize!"
|
||||||
-- if minetest.global_exists("irc") then
|
|
||||||
-- irc:say(msg)
|
|
||||||
-- end
|
|
||||||
minetest.chat_send_all(msg)
|
minetest.chat_send_all(msg)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -70,7 +70,8 @@ minetest.register_on_joinplayer(function(player)
|
||||||
if #inbox > 0 then
|
if #inbox > 0 then
|
||||||
minetest.after(10, function()
|
minetest.after(10, function()
|
||||||
minetest.chat_send_player(player:get_player_name(),
|
minetest.chat_send_player(player:get_player_name(),
|
||||||
minetest.colorize(#00FF00,"(" .. #inbox .. ") You have mail! Type /inbox to recieve"))
|
minetest.colorize("#00FF00",
|
||||||
|
"(" .. #inbox .. ") You have mail! Type /inbox to recieve"))
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue