Packet flooding with custom command

Hello,
I've recently started coding a plugin for my Rust server.
I have a function that takes a long time to complete and if I just call it from a ChatCommand, the player get kicked for Packet Flooding...
I tried tasks but you're not allowed to use them and you can't use unity Coroutines system...

Would you have any ideas how I could make this works?

 

 

You can use Unity coroutines.
5e13a8d5b2bc5.jpg Wulf
You can use Unity coroutines.

Am I missing a reference?

Would you know of a plugin that is using it that I could learn form?
Thanks

Merged post

Found it,
You have to "define a monobehavor subclass and attach it to a gameObject and unity will manage the coroutines as expected"