mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
@@ -136,11 +136,9 @@ public final class CommandMap {
|
||||
}
|
||||
|
||||
// Invoke execute method for handler.
|
||||
// Get whether the command starts a thread
|
||||
boolean threading = this.annotations.get(label).threading();
|
||||
Runnable runnable = () -> handler.execute(player, args);
|
||||
if(threading) {
|
||||
//start thread
|
||||
Thread command = new Thread(runnable);
|
||||
command.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user