Skip to content

Commit 9fe98a9

Browse files
McModknowerIchbinjoe
authored andcommitted
Do not use "/" as a path seperator (#110)
Instead use two argument invocation of new File(). Adds compatibility with Windows hosts. Co-Authored-By: McModknower <teetoll@t-online.de>
1 parent c72972c commit 9fe98a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bukkit/src/main/java/com/vexsoftware/votifier/NuVotifierBukkit.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private boolean loadAndBind() {
103103
}
104104

105105
// Handle configuration.
106-
File config = new File(getDataFolder() + "/config.yml");
106+
File config = new File(getDataFolder(), "config.yml");
107107

108108
/*
109109
* Use IP address from server.properties as a default for
@@ -153,7 +153,7 @@ private boolean loadAndBind() {
153153
}
154154

155155
YamlConfiguration cfg;
156-
File rsaDirectory = new File(getDataFolder() + "/rsa");
156+
File rsaDirectory = new File(getDataFolder(), "rsa");
157157

158158
// Load configuration.
159159
cfg = YamlConfiguration.loadConfiguration(config);

0 commit comments

Comments
 (0)