From 8875b17cbe9f2ed478ca377727f39f42e72564e0 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 26 Feb 2020 19:22:55 +0100 Subject: [PATCH] Adding debug output --- src/de/steamwar/bungeecore/commands/WebregisterCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/WebregisterCommand.java b/src/de/steamwar/bungeecore/commands/WebregisterCommand.java index c7306a0..452804a 100644 --- a/src/de/steamwar/bungeecore/commands/WebregisterCommand.java +++ b/src/de/steamwar/bungeecore/commands/WebregisterCommand.java @@ -26,8 +26,8 @@ public class WebregisterCommand extends BasicCommand { return; } - System.out.println(args[0]); ProcessBuilder pb = new ProcessBuilder("php", "/var/www/register.php", player.getName(), args[0]); + System.out.println(pb.command()); try { Process regProcess = pb.start(); BufferedReader reader = new BufferedReader(new InputStreamReader(regProcess.getInputStream())); @@ -51,6 +51,8 @@ public class WebregisterCommand extends BasicCommand { } error = true; } + System.out.println(regProcess.exitValue()); + System.out.println(regProcess.isAlive()); if(error) return;