fixed player not getting command feedback

This commit is contained in:
Jonas_Jones 2023-09-07 19:38:38 +02:00
parent bdb60f3ebe
commit d7f982af05

View file

@ -36,10 +36,7 @@ public class GameCommandHandler {
}
public static Text runCommand(CommandPreRegistry commandPreRegistry, CommandContext<ServerCommandSource> context) {
new Thread(() -> {
ShellCommand.execute(commandPreRegistry, context);
}).start();
return Text.of("Return");
return Text.of(ShellCommand.execute(commandPreRegistry, context));
}
public static void returnCommandOutput(String cmd, String commandFeedback, CommandContext<ServerCommandSource> context) {