Jump to content

how do i make a command that says something in chat?


SpicySteal

Recommended Posts

3 hours ago, SpicySteal said:

for explanation, title is saying if i did "/ann test" it would send "[TimeByte] test" in chat
how am i able to do this?

command /ann [<text>]:
  	trigger:
  		if arg-1 is "test":
  			send "{TimeByte} test" to player

or if you want the message to go to everyone:

command /ann [<text>]:
  	trigger:
  		if arg-1 is "test":
  			broadcast "{TimeByte} test"

 

Link to comment
Share on other sites

3 hours ago, _Mr_Puppy_ said:
command /ann [<text>]:
  	trigger:
  		if arg-1 is "test":
  			send "{TimeByte} test" to player

or if you want the message to go to everyone:

command /ann [<text>]:
  	trigger:
  		if arg-1 is "test":
  			broadcast "{TimeByte} test"

is there a way that you can make whatever the argument says broadcast and not just "test"?

 

Link to comment
Share on other sites

36 minutes ago, SpicySteal said:

how do i make it whatever it says

get sent

Heres a broadcast message I made for you

command /broadcast <text>:
	trigger:
		broadcast "&c[&aBroadcast&c] %arg-1%"

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...