From 61fa2063e5562a96df6c1cab9fe14d7166cc8a44 Mon Sep 17 00:00:00 2001 From: business-goose Date: Mon, 21 Mar 2022 20:38:58 +0000 Subject: [PATCH] Add print statement for debugging --- .../TotalFreedomMod/commands/Command_updatetfm.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 9fdfdba..bdad1ca 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java @@ -21,7 +21,9 @@ public class Command_updatetfm extends FreedomCommand { String directory = new File(path).getParent(); try { - Process uptimeProc = Runtime.getRuntime().exec(String.format("bash -c \"cd %s; %s\"", directory, path)); + String command = String.format("bash -c \"cd %s; %s\"", directory, path); + System.out.println(command); + Process uptimeProc = Runtime.getRuntime().exec(command); uptimeProc.waitFor(); playerMsg("Updated TFM! Reloading..."); Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false);