Corrected format

This commit is contained in:
BaiSugar
2022-04-24 22:38:53 +08:00
parent 0796957751
commit 60319ee9eb
3 changed files with 10 additions and 17 deletions

View File

@@ -136,9 +136,11 @@ 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();
}