Revert "Corrected format"

This reverts commit 60319ee9eb.
This commit is contained in:
BaiSugar
2022-04-24 22:42:44 +08:00
parent 60319ee9eb
commit f3d561cd06
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();
}