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 /EssentialsSigns | |
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 'EssentialsSigns')
-rw-r--r-- | EssentialsSigns/src/net/ess3/signs/SignsConfigHolder.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/EssentialsSigns/src/net/ess3/signs/SignsConfigHolder.java b/EssentialsSigns/src/net/ess3/signs/SignsConfigHolder.java index 0f74a965d..5f3a767f7 100644 --- a/EssentialsSigns/src/net/ess3/signs/SignsConfigHolder.java +++ b/EssentialsSigns/src/net/ess3/signs/SignsConfigHolder.java @@ -1,7 +1,6 @@ package net.ess3.signs; import java.io.File; -import java.io.IOException; import java.util.*; import net.ess3.api.IEssentials; import net.ess3.storage.AsyncStorageObjectHolder; @@ -16,7 +15,7 @@ public class SignsConfigHolder extends AsyncStorageObjectHolder<SignsConfig> public SignsConfigHolder(final IEssentials ess, final Plugin plugin) { - super(ess, SignsConfig.class); + super(ess, SignsConfig.class, new File(plugin.getDataFolder(), "config.yml")); this.plugin = plugin; onReload(); final Map<String, Boolean> signs = getData().getSigns(); @@ -44,12 +43,6 @@ public class SignsConfigHolder extends AsyncStorageObjectHolder<SignsConfig> queueSave(); } - @Override - public File getStorageFile() throws IOException - { - return new File(plugin.getDataFolder(), "config.yml"); - } - public Set<EssentialsSign> getEnabledSigns() { return enabledSigns; |