mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +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();
|
Actor actor = event.getActor();
|
||||||
String args = event.getArguments();
|
String args = event.getArguments();
|
||||||
TaskManager.IMP.taskNow(() -> {
|
TaskManager.IMP.taskNow(() -> {
|
||||||
|
if (!Fawe.isMainThread()) {
|
||||||
|
Thread.currentThread().setName("FAWE Thread for player: " + actor.getName());
|
||||||
|
}
|
||||||
int space0 = args.indexOf(' ');
|
int space0 = args.indexOf(' ');
|
||||||
String arg0 = space0 == -1 ? args : args.substring(0, space0);
|
String arg0 = space0 == -1 ? args : args.substring(0, space0);
|
||||||
Optional<Command> optional = commandManager.getCommand(arg0);
|
Optional<Command> optional = commandManager.getCommand(arg0);
|
||||||
|
Loading…
Reference in New Issue
Block a user