Code cleanup

moved threading to parent scope
added issues link to mod config
This commit is contained in:
Jonas_Jones 2022-07-26 09:13:44 +02:00
parent 8efeb1cc5b
commit 643f9497ea
3 changed files with 33 additions and 32 deletions

View file

@ -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;