diff --git a/pom.xml b/pom.xml
index 8cc6eba..5b662f4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
com.songoda
EpicHeads
- 3.4.2-BETA
+ 3.4.2
clean install
@@ -122,7 +122,7 @@
com.songoda
SongodaCore
- 2.6.19-DEV
+ 2.6.19
compile
diff --git a/src/main/java/com/songoda/epicheads/EpicHeads.java b/src/main/java/com/songoda/epicheads/EpicHeads.java
index 2a29f70..d782358 100644
--- a/src/main/java/com/songoda/epicheads/EpicHeads.java
+++ b/src/main/java/com/songoda/epicheads/EpicHeads.java
@@ -221,13 +221,13 @@ public class EpicHeads extends SongodaPlugin {
private void downloadHeads() {
try {
- InputStream is = new URL("http://www.head-db.com/dump").openStream();
+ InputStream is = new URL("https://songoda.github.io/EpicHeads/heads.json").openStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8));
String jsonText = readAll(rd);
JSONParser parser = new JSONParser();
JSONArray json = (JSONArray) parser.parse(jsonText);
- try (FileWriter file = new FileWriter(getDataFolder() + "/heads.json")) {
+ try (FileWriter file = new FileWriter(new File(getDataFolder(), "heads.json"))) {
file.write(json.toJSONString());
}
} catch (Exception ex) {