From acb777dde8aba9109cc7d20f20b8fdd6a257573e Mon Sep 17 00:00:00 2001 From: business-goose Date: Mon, 21 Mar 2022 21:12:32 +0000 Subject: [PATCH] Remove debug stuff --- .../TotalFreedomMod/commands/Command_updatetfm.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java index dc643a1..65d214c 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java @@ -23,13 +23,9 @@ public class Command_updatetfm extends FreedomCommand { try { String command = String.format("cd %s && ./%s", directory, file.getName()); - System.out.println(command); ProcessBuilder proc = new ProcessBuilder("/bin/bash", "-c", command); - proc.redirectErrorStream(true); - proc.inheritIO(); Process process = proc.start(); process.waitFor(); - System.out.println(proc.redirectOutput()); playerMsg("Updated TFM! Reloading..."); Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false); Bukkit.dispatchCommand(sender, "plugman reload TotalFreedomMod");