SteamWar/BungeeCore
Archiviert
13
2

Adding debug output

Dieser Commit ist enthalten in:
Lixfel 2020-02-26 19:22:55 +01:00
Ursprung 4620c859b5
Commit 8875b17cbe

Datei anzeigen

@ -26,8 +26,8 @@ public class WebregisterCommand extends BasicCommand {
return; return;
} }
System.out.println(args[0]);
ProcessBuilder pb = new ProcessBuilder("php", "/var/www/register.php", player.getName(), args[0]); ProcessBuilder pb = new ProcessBuilder("php", "/var/www/register.php", player.getName(), args[0]);
System.out.println(pb.command());
try { try {
Process regProcess = pb.start(); Process regProcess = pb.start();
BufferedReader reader = new BufferedReader(new InputStreamReader(regProcess.getInputStream())); BufferedReader reader = new BufferedReader(new InputStreamReader(regProcess.getInputStream()));
@ -51,6 +51,8 @@ public class WebregisterCommand extends BasicCommand {
} }
error = true; error = true;
} }
System.out.println(regProcess.exitValue());
System.out.println(regProcess.isAlive());
if(error) if(error)
return; return;