kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
49 stars 23 forks source link

1.20.4: timed.rs How to setup timed messages. #2610

Closed Denial234 closed 6 months ago

Denial234 commented 6 months ago

Are you using MySQL?

No

Are you using BungeeCord/Velocity?

No

Question

I think i have an idea of how to setup a timed JSON message to run at a specific interval. The default preset is:

You can also send raw JSON messages using this example here:

WARNING: Requires Minecraft 1.16+. For older versions, generate

a new JSON at https://www.minecraftjson.com/ and set MC to 1.13

group json-sample

delay 600 seconds

prefix [JSON]

message:

- ["",{"text":"Please see ","color":"yellow"},{"text":"/buy ","color":"#FF0000","clickEvent":{"action":"run_command","value":"/buy"},"hoverEvent":{"action":"show_text","contents":[{"text":"Click here to run the ","color":"gold"},{"text":"/buy ","bold":true,"color":"light_purple"},{"text":"command!","color":"gold"}]}},{"text":"to purchase ranks!","color":"yellow"}]

But how exactly would i make it run through multiple messages at a set time while also making it run through the messages randomly and not just from top to bottom? Is there a way to setup tips to run in the server chat so that players can get tips on what things you can do on the server?

'Perform command for this' 'Don't forget to buy our ranks at /buy' 'Vote for our server by typing /vote'

But make the plugin run through them randomly so that they don't get sent in order from top to bottom while also being sent seperately with the same time delay between each message? Basically the plugin picks any of the above to be sent every 600 seconds.

I don't know if the solution would be to add another message right under the other which i obviously should've tried before writing this. But i don't know if the plugin will pick the messages randomly or not or if the plugin only runs the message once 600 seconds right after join which i don't want.