From af3c723e0d9033c647eb2769379dcb038581360c Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Thu, 8 Oct 2020 21:47:34 -0400 Subject: [PATCH] Rename FAWE Threads to be more identifiable. --- .../worldedit/extension/platform/PlatformCommandManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index 50ec0c47c..22cd184ef 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -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 optional = commandManager.getCommand(arg0);