mirror of
https://github.com/JonasunderscoreJones/BetterConsoleMC.git
synced 2025-10-24 14:19:19 +02:00
Fixed Command Output Buffering
Fixed an issue where the Server would wait for the Command Process to terminate before returning the Command Output
This commit is contained in:
parent
2f759e2edf
commit
f897d7630e
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ public class GameCommandHandler {
|
|||
serverCommandSourceCommandDispatcher.register((CommandManager.literal(commandPreRegistry.getIngamecommand()).requires(source -> source.hasPermissionLevel(commandPreRegistry.getPermissionLevel()))
|
||||
.executes((context -> {
|
||||
if (commandPreRegistry.getCommandmode() == Constants.CmdMode.RETURN) {
|
||||
context.getSource().sendFeedback(() -> runCommand(commandPreRegistry, context), commandPreRegistry.doBroadcastToOp());
|
||||
runCommand(commandPreRegistry, context);
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
})))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue