Better PMs

master
whiskers75 2013-11-24 11:25:55 +00:00
parent 545255632a
commit 44884356aa
2 changed files with 5 additions and 5 deletions

View File

@ -616,7 +616,7 @@ minetest.register_chatcommand("shutdown", {
func = function(name, param)
minetest.log("action", name .. " shuts down server")
minetest.request_shutdown()
minetest.chat_send_all("*** Server shutting down (operator request).")
minetest.chat_send_all("*** Server shutting down [operator command]")
end,
})
@ -663,7 +663,7 @@ minetest.register_chatcommand("clearobjects", {
privs = {server=true},
func = function(name, param)
minetest.log("action", name .. " clears all objects")
minetest.chat_send_all("Clearing all objects. This may take long. You may experience a timeout. (by " .. name .. ")")
minetest.chat_send_all("*** ".. name .." is clearing all objects! Lag incoming!")
minetest.clear_objects()
minetest.log("action", "object clearing done")
minetest.chat_send_all("*** Cleared all objects.")
@ -679,8 +679,8 @@ minetest.register_chatcommand("msg", {
if found then
if minetest.get_player_by_name(sendto) then
minetest.log("action", "PM from "..name.." to "..sendto..": "..message)
minetest.chat_send_player(sendto, "PM from "..name..": "..message, false)
minetest.chat_send_player(name, "Message sent")
minetest.chat_send_player(sendto, "["..name.." -> you] "..message, false)
minetest.chat_send_player(name, "[you -> "..name.."] "..message)
else
minetest.chat_send_player(name, "The player "..sendto.." is not online")
end

View File

@ -257,7 +257,7 @@ void addNodeParticle(IGameDef* gamedef, scene::ISceneManager* smgr,
// Texture
u8 texid = myrand_range(0,5);
video::ITexture *texture = tiles[texid].texture;
// Only use first frame of animated texture
f32 ymax = 1;
if(tiles[texid].material_flags & MATERIAL_FLAG_ANIMATION_VERTICAL_FRAMES)