2

Help with commands

Teddysol7 5/4/20 8:26 am
106
5/4/2020 11:23 am
I have a server and I need help making commands that whisper to the player the discord link and the vote links when they say something in chat. can you help me do this?
Posted by
Teddysol7
Level 11 : Journeyman Taco
21

  Have something to say?

JoinSign in

6

mrurl42
05/04/2020 8:58 am
Level 43 : Master Procrastinator
I would probably set up a trigger for that. Something like "/trigger discord_link" for example. So when someone types that, you would use tellraw @a[scores={discord_link=1..}] <insert your tellraw statement here>

To generate a tellraw command with links/hovers/etc... use https://minecraft.tools/en/tellraw.php

Just make sure after the execute the tellraw, you reset the discord_link score. Also set up a command that is always re-enabling the trigger so that people can use it again.
2
Toshnika
05/04/2020 8:27 am
Level 33 : Artisan System
would a command on a player joining work? that's not too hard
1
Teddysol7
05/04/2020 8:28 am
Level 11 : Journeyman Taco
yes, that would be fine I guess
1
Toshnika
05/04/2020 8:34 am
Level 33 : Artisan System
k, I'll throw that together
1
Toshnika
05/04/2020 8:56 am
Level 33 : Artisan System
k, here it is
https://www.planetminecraft.com/data-pack/simple-welcome-messge/
follow the instructions, if you're on windows you may have to temporarily add .txt to the end of the mcfunction. Hope this makes sense

-Toshnika
1
mrurl42
05/04/2020 11:23 am
Level 43 : Master Procrastinator
I was thinking about a "message of the day" datapack actually... Something you wouldn't have to manually edit the function every time... put it into a trigger like i suggested and just activate the trigger for the person on login. That way they can activate it manually themselves if they want without having to log out and back in to see it. That would give this much more flexibility than just sending a simple login message.
1

Welcome