task_loop

bedrock_server_manager.plugins.task_loop.task_loop(interval: int | float) → Callable

Register a periodic plugin task with an interval in seconds.

The first call follows the initial interval. Sync and async callbacks are supported; callback failures are logged and the loop continues.