[Mod] Private Messages with @ (rewritten!) [atchat]

Post Reply
User avatar
orwell
Member
Posts: 958
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell
Location: Raxacoricofallapatorius

[Mod] Private Messages with @ (rewritten!) [atchat]

by orwell » Post

I've become frustrated of typing /msg player text every time I wanted to send a PM.
So I took redsand, modified and shortened it beyond recognition and this was the result.
Since Minetest now supports turning off the default <name> message output, I've rewritten it a bit

Send private message to player:
@player text
or
@player:text
will result in the following output:
at you: (@player) text
at target: (yourname) text
(but no other players will receive that message)
This is equivalent to /msg player text

Send private message to multiple players:
@player1,player2 text
or
@player1,player2:text
will result in the following output:
at you: (@player1,player2) text
at targets: (yourname) text
(but no other players will receive that message)
This is equivalent to /msg player1 text and /msg player2 text

Send a message to the player(s) you sent the last message to:
@ text
will result in the following output:
at you: (@player) text
at target: (yourname) text
(but no other players will receive that message)
This is equivalent to /msg <the last player you wrote to> text

Hints:
  • do NOT write spaces behind commas when using @player1,player2,...,playerN text
  • the round brackets tell that only a bunch of players received that message.
  • in comparison to version 1.0, you can no longer see the other receivers of a message.
This mod is, although modified beyond recognition, based on [redsand].

License: see LICENSE.txt in mod folder
Mod dependencies: none

Bugs: Where should there be bugs? This mod consists of one function and one global table!
Suggestions (and bugs) can be posted into this thread.

Download:
atchat_2_0.zip
v. 2.0
(3.07 KiB) Downloaded 114 times
Older version:
atchat_1_0.zip
v. 1.0
(2.96 KiB) Downloaded 195 times
Last edited by orwell on Wed Jun 13, 2018 15:52, edited 1 time in total.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

User avatar
Lejo
Member
Posts: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Private Messages with @ [atchat]

by Lejo » Post

Very nice idea to use the @.

User avatar
linushsao
Member
Posts: 418
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus
Location: Taipei,Taiwan(R.O.C)
Contact:

Re: [Mod] Private Messages with @ [atchat]

by linushsao » Post

+1
1)Server:Mars World
2).address:139.59.238.211:30016
3).manual(in processing):http://tinyurl.com/jyjkrgl
4).for my(admin's) role in all my servers,i'll be as the earth/water/fire/wind. i maintain that system,but not manage/touch players directly in game,not own the crafts on planet. i just keep watching the worlds.
5).TODO-List

User avatar
orwell
Member
Posts: 958
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell
Location: Raxacoricofallapatorius

Re: [Mod] Private Messages with @ (rewritten!) [atchat]

by orwell » Post

Mod rewritten, see first post
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests