Revert "Corrected format"

This reverts commit 153593b64c.
This commit is contained in:
BaiSugar
2022-04-24 22:42:44 +08:00
parent 153593b64c
commit 271f9b9ec5
3 changed files with 17 additions and 10 deletions

View File

@@ -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();
}