Colorize some info messages
This commit is contained in:
parent
29e8be0825
commit
7957cb9883
@ -366,7 +366,7 @@ minetest.register_node(
|
||||
|
||||
-- No sleeping while moving
|
||||
if vector.length(clicker:get_player_velocity()) > 0.001 then
|
||||
minetest.chat_send_player(name, S("You have to stop moving before going to bed!"))
|
||||
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("You have to stop moving before going to bed!")))
|
||||
return false
|
||||
end
|
||||
|
||||
|
@ -1558,7 +1558,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||
-- Is mob tamed?
|
||||
|
||||
if self.tamed == false and force_take == false then
|
||||
minetest.chat_send_player(name, S("Not tamed!"))
|
||||
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("Not tamed!")))
|
||||
|
||||
return
|
||||
end
|
||||
@ -1566,7 +1566,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||
-- Cannot pick up if not owner
|
||||
|
||||
if self.owner ~= name and force_take == false then
|
||||
minetest.chat_send_player(name, S("@1 is owner!", self.owner))
|
||||
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("@1 is owner!", self.owner)))
|
||||
|
||||
return
|
||||
end
|
||||
@ -1603,7 +1603,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
|
||||
|
||||
achievements.trigger_achievement(clicker, "ranger")
|
||||
else
|
||||
minetest.chat_send_player(name, S("Missed!"))
|
||||
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("Missed!")))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -79,7 +79,7 @@ minetest.register_craftitem(
|
||||
wield_image = "nav_inventory.png",
|
||||
stack_max = 1,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
minetest.chat_send_player(user:get_player_name(), S("Use the minimap key to show the map."))
|
||||
minetest.chat_send_player(user:get_player_name(), minetest.colorize("#FFFF00", S("Use the minimap key to show the map.")))
|
||||
nav.map.update_hud_flags(user)
|
||||
end,
|
||||
})
|
||||
|
@ -62,7 +62,7 @@ minetest.register_craftitem(
|
||||
else
|
||||
minetest.chat_send_player(
|
||||
player:get_player_name(),
|
||||
S("Cannot open parachute on ground!"))
|
||||
minetest.colorize("#FFFF00", S("Cannot open parachute on ground!")))
|
||||
end
|
||||
end
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user