mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:46:31 +00:00
Add print statement for debugging
This commit is contained in:
parent
33a34cfa56
commit
61fa2063e5
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ public class Command_updatetfm extends FreedomCommand {
|
||||||
String directory = new File(path).getParent();
|
String directory = new File(path).getParent();
|
||||||
|
|
||||||
try {
|
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();
|
uptimeProc.waitFor();
|
||||||
playerMsg("Updated TFM! Reloading...");
|
playerMsg("Updated TFM! Reloading...");
|
||||||
Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false);
|
Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false);
|
||||||
|
|
Loading…
Reference in a new issue