[Mod] Private Messages with @ [atchat]

User avatar
orwell
Member
 
Posts: 467
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
In-game: orwell

[Mod] Private Messages with @ [atchat]

by orwell » Mon Nov 16, 2015 16:09

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.

Send private message to player:
@player text
or
@player:text
will result in the following output:
at you: <yourname> @player text
at target: (yourname) @player 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: <yourname> @player1,player2 text
at target 1: (yourname) @player1,player2 text
at target 2: (yourname) @player1,player2 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: <yourname> @ text
at last target(s): (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
  • all players the PM is addressed to get the unmodified version of the chat message, so they can see to whom that message went.
  • the <yourname> output can't be turned off.
  • the round brackets tell that only a bunch of players received that message.(as if the @ isn't enough)

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_1_0.zip
v. 1.0
(2.96 KiB) Downloaded 157 times
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

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

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

by Lejo » Fri Nov 11, 2016 16:41

Very nice idea to use the @.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

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

by linushsao » Sun Nov 20, 2016 15:28

+1
1).My 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.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 49 guests

cron