#Help with commands.yml

1 messages · Page 1 of 1 (latest)

placid dawn
#

i want to make it so that when a player types
/map

it tells them in the chat,
/tellraw {player} ["",{"text":"\n"},{"text":"(","bold":true,"color":"red"},{"text":"!","bold":true,"color":"blue"},{"text":")","bold":true,"color":"red"},{"text":" ","color":"green"},{"text":"Hey! Click Here to see the Server Map!","color":"green","clickEvent":{"action":"open_url","value":"test.wow/not/telling/you/"},"hoverEvent":{"action":"show_text","contents":"Click me!"}},{"text":"\n "}]

fallen dome
#

Use text components

#

Or just Bukkit.dispatchCommand(Bukkit.getConsoleServer(), "tellraw @s... (Without slash)");

fallen dome
#

(( But it is for java plugin ))
If you can't write plugin , you can ask me in dm!

#

¯\_(ツ)_/¯

placid dawn
#

no in the commands.yml

#

aliases:
map:
- tellraw @{player who issued command}...

fallen dome
#

@s

placid dawn
#

that would work for non op players?

fallen dome
#

Don't think so

#

You need a plugin

placid dawn
#

like

fallen dome
#

A plugin with command /map

#

i can do it for you

#

but not now, I have night now