From 3326c6523c4f4719ab7ae59fae1fc520baabbe94 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 26 Nov 2016 20:35:34 -0500 Subject: [PATCH] Added a single slash. pls work --- src/alisolarflare/components/metrics/MetricsComponent.java | 2 +- src/alisolarflare/components/metrics/files/MetricsFile.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/alisolarflare/components/metrics/MetricsComponent.java b/src/alisolarflare/components/metrics/MetricsComponent.java index a01c0a8..7b572fb 100644 --- a/src/alisolarflare/components/metrics/MetricsComponent.java +++ b/src/alisolarflare/components/metrics/MetricsComponent.java @@ -11,7 +11,7 @@ import alisolarflare.components.metrics.files.MetricsFile; import alisolarflare.components.metrics.output.GetLoginMetrics; public class MetricsComponent extends Component{ - String defaultPath = "AliPresents/metrics"; + String defaultPath = "/AliPresents/metrics"; String defaultFilePath = (defaultPath + "/metrics.txt"); String playerLoginsFilePath = (defaultPath + "/playerLogins.txt"); diff --git a/src/alisolarflare/components/metrics/files/MetricsFile.java b/src/alisolarflare/components/metrics/files/MetricsFile.java index 2420cd7..ed0bde0 100644 --- a/src/alisolarflare/components/metrics/files/MetricsFile.java +++ b/src/alisolarflare/components/metrics/files/MetricsFile.java @@ -13,7 +13,7 @@ import java.util.List; import buttondevteam.lib.TBMCCoreAPI; public class MetricsFile { - private String fileName = "AliPresents/metrics/playerLogins.txt"; + private String fileName = "/AliPresents/metrics/playerLogins.txt"; public MetricsFile(String directory){ this.fileName = directory; } @@ -21,9 +21,9 @@ public class MetricsFile { BufferedWriter inputStream = null; try { File file = new File(fileName); - TBMCCoreAPI.SendException("Metrics File Exists: " + file.exists(), new IOException()); + TBMCCoreAPI.sendDebugMessage("Metrics File Exists: " + file.exists()); inputStream = new BufferedWriter(new FileWriter(fileName, true)); - TBMCCoreAPI.SendException("Input Stream Created!", new IOException()); + TBMCCoreAPI.sendDebugMessage("Input Stream Created!"); inputStream.write(string); inputStream.newLine(); inputStream.close();