diff options
author | snowleo <schneeleo@gmail.com> | 2012-10-07 22:18:30 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-10-07 22:18:53 +0200 |
commit | 524531a0902a5d368decce6ce6bd714c7d429062 (patch) | |
tree | 230cdec7946d167e64a0e3054fc88671cdc51917 /EssentialsGeoIP | |
parent | 7a36150f3ca52c1900ca16940decd5317ad5e607 (diff) | |
download | Essentials-524531a0902a5d368decce6ce6bd714c7d429062.tar Essentials-524531a0902a5d368decce6ce6bd714c7d429062.tar.gz Essentials-524531a0902a5d368decce6ce6bd714c7d429062.tar.lz Essentials-524531a0902a5d368decce6ce6bd714c7d429062.tar.xz Essentials-524531a0902a5d368decce6ce6bd714c7d429062.zip |
Queued writing of the files to reduce disk io
Diffstat (limited to 'EssentialsGeoIP')
-rw-r--r-- | EssentialsGeoIP/src/net/ess3/geoip/ConfigHolder.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/EssentialsGeoIP/src/net/ess3/geoip/ConfigHolder.java b/EssentialsGeoIP/src/net/ess3/geoip/ConfigHolder.java index 4f6faba69..0edb7bc50 100644 --- a/EssentialsGeoIP/src/net/ess3/geoip/ConfigHolder.java +++ b/EssentialsGeoIP/src/net/ess3/geoip/ConfigHolder.java @@ -1,7 +1,6 @@ package net.ess3.geoip; import java.io.File; -import java.io.IOException; import net.ess3.api.IEssentials; import net.ess3.settings.geoip.GeoIP; import net.ess3.storage.AsyncStorageObjectHolder; @@ -14,18 +13,12 @@ public class ConfigHolder extends AsyncStorageObjectHolder<GeoIP> public ConfigHolder(final IEssentials ess, final Plugin geoip) { - super(ess, GeoIP.class); + super(ess, GeoIP.class, new File(geoip.getDataFolder(), "config.yml")); this.geoip = geoip; onReload(true); } @Override - public File getStorageFile() throws IOException - { - return new File(geoip.getDataFolder(), "config.yml"); - } - - @Override public void finishRead() { } |