mirror of
https://github.com/JonasunderscoreJones/ConsoleMC.git
synced 2025-10-23 10:39:18 +02:00
Code cleanup
moved threading to parent scope added issues link to mod config
This commit is contained in:
parent
8efeb1cc5b
commit
643f9497ea
3 changed files with 33 additions and 32 deletions
|
@ -76,7 +76,8 @@ public class RunCommand {
|
|||
}
|
||||
}
|
||||
public static int runCommand(String cmd, CommandContext<ServerCommandSource> context) {
|
||||
return ShellCommand.execute(cmd, context);
|
||||
new Thread(() -> {ShellCommand.execute(cmd, context);}).start();
|
||||
return 1;
|
||||
}
|
||||
public static void returnCommandOutput(String cmd, String commandFeedback, CommandContext<ServerCommandSource> context) {
|
||||
String consoleLog = " [" + cmd + "]: " + commandFeedback;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue