From e2037e969876d3257186e362c78ff5812cfcf77e Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Mon, 15 May 2023 17:40:47 +0200 Subject: [PATCH] Run status-command in separate thread --- .../bluecolored/bluemap/common/plugin/commands/Commands.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/commands/Commands.java b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/commands/Commands.java index f9e739cd..ec66d641 100644 --- a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/commands/Commands.java +++ b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/commands/Commands.java @@ -311,7 +311,10 @@ public class Commands { return 0; } - source.sendMessages(helper.createStatusMessage()); + new Thread(() -> { + source.sendMessages(helper.createStatusMessage()); + }, "BlueMap-Plugin-StatusCommand").start(); + return 1; }