Rename FAWE Threads to be more identifiable.

This commit is contained in:
MattBDev 2020-10-08 21:47:34 -04:00
parent 0c9f00b6ba
commit ae38880e1b

View File

@ -635,6 +635,9 @@ public final class PlatformCommandManager {
Actor actor = event.getActor();
String args = event.getArguments();
TaskManager.IMP.taskNow(() -> {
if (!Fawe.isMainThread()) {
Thread.currentThread().setName("FAWE Thread for player: " + actor.getName());
}
int space0 = args.indexOf(' ');
String arg0 = space0 == -1 ? args : args.substring(0, space0);
Optional<Command> optional = commandManager.getCommand(arg0);