[Feature Request] Add event_timer
Opened this issue · 0 comments
elhertz commented
An event to execute actions every certain seconds
{
"event_timer": {
"requires": [
"delay('20')" // this will execute actions every 20 seconds
],
"actions": [
{
"id": "send_discord_message",
"value": "Hey there!"
}
]
}
}
Another example:
Check every 30 seconds if player got muted on discord and mute them on minecraft too
{
"event_timer": {
"requires": [
"delay('30')",
"linked_account_has_role('muted')"
],
"actions": [
{
"id": "run_command",
"value": "mute %player:name_unformatted%"
}
]
}
}
(you also need to make another event_timer to unmute them)
This would check every players connected to the server so I guess it could be very resource intensive? I hope not