Added a single slash. pls work

This commit is contained in:
alisolarflare 2016-11-26 20:35:34 -05:00
parent 0e9df75f17
commit 3326c6523c
2 changed files with 4 additions and 4 deletions

View file

@ -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");

View file

@ -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();