From 1b6c61f394b092451e59f1365fb92859bc60b3e3 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 26 Feb 2020 19:28:22 +0100 Subject: [PATCH] Fixing read? --- src/de/steamwar/bungeecore/commands/WebregisterCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/WebregisterCommand.java b/src/de/steamwar/bungeecore/commands/WebregisterCommand.java index c40355ad..8c42d403 100644 --- a/src/de/steamwar/bungeecore/commands/WebregisterCommand.java +++ b/src/de/steamwar/bungeecore/commands/WebregisterCommand.java @@ -27,7 +27,7 @@ public class WebregisterCommand extends BasicCommand { } ProcessBuilder pb = new ProcessBuilder("php", "/var/www/register.php", player.getName(), args[0]); - pb = pb.redirectInput(ProcessBuilder.Redirect.INHERIT); + pb = pb.redirectInput(ProcessBuilder.Redirect.PIPE).redirectError(ProcessBuilder.Redirect.PIPE).redirectOutput(ProcessBuilder.Redirect.PIPE); System.out.println(pb.command()); try { Process regProcess = pb.start();