mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Rename FAWE Threads to be more identifiable.
This commit is contained in:
parent
0c9f00b6ba
commit
ae38880e1b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user