mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add option to not prepend "Server -!- " to messages sent with minetest.chat_send_player()
This commit is contained in:
parent
9894167bbf
commit
3d4d0cb574
5 changed files with 14 additions and 7 deletions
|
@ -675,7 +675,7 @@ minetest.register_chatcommand("msg", {
|
|||
if found then
|
||||
if minetest.env:get_player_by_name(sendto) then
|
||||
minetest.log("action", "PM from "..name.." to "..sendto..": "..message)
|
||||
minetest.chat_send_player(sendto, "PM from "..name..": "..message)
|
||||
minetest.chat_send_player(sendto, "PM from "..name..": "..message, false)
|
||||
minetest.chat_send_player(name, "Message sent")
|
||||
else
|
||||
minetest.chat_send_player(name, "The player "..sendto.." is not online")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue