mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-10-06 11:37:50 +02:00
Merge branch 'master' into spigot
This commit is contained in:
commit
9b286b7df1
@ -5,7 +5,7 @@ package com.sekwah.advancedportals.core.util;
|
||||
*/
|
||||
public class Config {
|
||||
|
||||
private boolean useOnlySpecialAxe = false;
|
||||
private boolean useOnlySpecialAxe;
|
||||
|
||||
private String axeMaterial = "IRON_AXE";
|
||||
|
||||
|
@ -50,8 +50,12 @@ public class DataStorage {
|
||||
}
|
||||
|
||||
public void storeJson(Object dataHolder, String location) {
|
||||
String json = gson.toJson(dataHolder);
|
||||
try {
|
||||
gson.toJson(dataHolder, new FileWriter(new File(this.dataFolder, location)));
|
||||
FileWriter fileWriter = new FileWriter(new File(this.dataFolder, location));
|
||||
System.out.println(json);
|
||||
fileWriter.write(json);
|
||||
fileWriter.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user