How to make the commands of other plug-ins run in my own multithreading environment

Hello,
I want to make a command execution management plug-in.
Let some unimportant commands be executed under my plug-in method when the server causes the plug-ins to execute the commands?
For example:
When the nucleus plug-in executes the / invsee command and fills in a non-existent player, the server will be stuck.
If I don’t want the nucleus plug-in to use my API, how can I force some of the plug-in’s commands to run in my new thread?
By the priority of the event?

Statement:
I’ve tried to use a new thread to execute when a mod parses a data file, which will not have any negative impact.
Of course, I also add tasks to the new thread in the command execution method.
And it’s working very well now. There was no problem.