Help! {MAD COMMANDS}

How will I make it so when someone mentions someone else name or a certain name so if I type ‘hi @TylerWayne’ the @TylerWayne would be red, only that name. No others just @TylerWayne. Help

Some are born great, some achieve greatness, and some have greatness thrust upon them
SHAKESPEARE "1582-1616"

CEO/Owner Of You
(MadComamnds Nerd)

-1

I don’t think this is possible.

Mohammed
LEET Customer Service Representative

Check out my graphic design portfolio: http://bit.ly/mohammedgfx

Need assistance? Get support at support.leet.cc !

GFX Designer

Twitter/YT/Instagram: TechKingHQ
Discord: TechKingHQ#4929

@fuzionpanda Aw =< Shame. Thanks for the help though!

Some are born great, some achieve greatness, and some have greatness thrust upon them
SHAKESPEARE "1582-1616"

CEO/Owner Of You
(MadComamnds Nerd)

-1

@lordjay said in Help! {MAD COMMANDS}:

@fuzionpanda Aw =< Shame. Thanks for the help though!

I didn’t help. :(

I apologize that this isn’t possible.

Do you have any other questions pertaining to MadCommands?

Mohammed
LEET Customer Service Representative

Check out my graphic design portfolio: http://bit.ly/mohammedgfx

Need assistance? Get support at support.leet.cc !

GFX Designer

Twitter/YT/Instagram: TechKingHQ
Discord: TechKingHQ#4929

Hi.
It is possible to do this. You can make use of the new features in MadCommands 2.0.

The things you can use are:
[1] replace() function
[2] join() function

For example:

cmd create mention
cmd register mention

Then add the following lines:
1. # Mention
2. %msg% = %args%[1+]
3. %rep% = replace(%msg%, \"@\", \"§[email protected]\")
4. %rep% = replace(%rep%, \",\",\"§r,\")
5. %msg% = join(%rep%, \"§r \")
6. message onlineplayers() %p%: %msg%

/mention @everyone hi
So what the lines above do is it replaces the @ with §[email protected](Line 3) so that it would have a red color, then messages all online players.

If you want it to be triggered to chat then there will be minor changes.

cmd create mention
cmd trigger chat mention

1. # Mention
2. %msg% = %args%[3]
3. %split% = split(%args%[3], \" \")
4. %rep% = replace(%split%, \"@\", \"§[email protected]\")
5. %rep% = replace(%rep%, \",\",\"§r,\")
6. %msg% = join(%rep%, \"§r \")
7. message onlineplayers() %p%: %msg%

However, this will duplicate the messages unless you put cancel in line 1. This would mean you’d have to add the format for groups as well in message part.

Timezone: GMT+8:00
⠠⠝⠥⠭⠑⠑⠇
https://pastebin.com/u/Nuxeel

-1

@nuxeel Yes, so that will still show the previous message which will be a little bit annoying.

Mohammed
LEET Customer Service Representative

Check out my graphic design portfolio: http://bit.ly/mohammedgfx

Need assistance? Get support at support.leet.cc !

GFX Designer

Twitter/YT/Instagram: TechKingHQ
Discord: TechKingHQ#4929

@nuxeel How would I add their group name or format? Is there a variable like %group%?

Some are born great, some achieve greatness, and some have greatness thrust upon them
SHAKESPEARE "1582-1616"

CEO/Owner Of You
(MadComamnds Nerd)

@fuzionpanda said in Help! {MAD COMMANDS}:

@nuxeel Yes, so that will still show the previous message which will be a little bit annoying.

It won’t show if you put cancel in line 1 of the second mention command above. This means that the original message typed by the player won’t be shown.

Timezone: GMT+8:00
⠠⠝⠥⠭⠑⠑⠇
https://pastebin.com/u/Nuxeel

@nuxeel said in Help! {MAD COMMANDS}:

@fuzionpanda said in Help! {MAD COMMANDS}:

@nuxeel Yes, so that will still show the previous message which will be a little bit annoying.

It won’t show if you put cancel in line 1 of the second mention command above. This means that the original message typed by the player won’t be shown.

Oh, interesting…I’ll be sure to test! Thanks!

Mohammed
LEET Customer Service Representative

Check out my graphic design portfolio: http://bit.ly/mohammedgfx

Need assistance? Get support at support.leet.cc !

GFX Designer

Twitter/YT/Instagram: TechKingHQ
Discord: TechKingHQ#4929

Log in to reply

Looks like your connection to LEET Forums was lost, please wait while we try to reconnect.