saving of conf
This commit is contained in:
parent
e1270b8f1a
commit
b6bfb065fe
@ -170,6 +170,8 @@ public class Config {
|
||||
this.buyPrice = ConfigHandler.fromJson(obj, "buyPrice", this.buyPrice);
|
||||
this.lockDrops = ConfigHandler.fromJson(obj, "lockDrops", this.lockDrops);
|
||||
this.dropTicks = ConfigHandler.fromJson(obj, "dropTicks", this.dropTicks);
|
||||
this.inactivityTime = ConfigHandler.fromJson(obj, "inactivityTimeDays", this.inactivityTime);
|
||||
this.inactivityBlocksMax = ConfigHandler.fromJson(obj, "inactivityBlocksMax", this.inactivityBlocksMax);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -223,6 +225,8 @@ public class Config {
|
||||
obj.addProperty("buyPrice", this.buyPrice);
|
||||
obj.addProperty("lockDrops", this.lockDrops);
|
||||
obj.addProperty("dropTicks", this.dropTicks);
|
||||
obj.addProperty("inactivityTimeDays", this.inactivityTime);
|
||||
obj.addProperty("inactivityBlocksMax", this.inactivityBlocksMax);
|
||||
try {
|
||||
FileWriter writer = new FileWriter(this.config);
|
||||
ConfigHandler.GSON.toJson(obj, writer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user