summaryrefslogtreecommitdiffstats
path: root/EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java')
-rw-r--r--EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java
new file mode 100644
index 000000000..e2d82d644
--- /dev/null
+++ b/EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java
@@ -0,0 +1,27 @@
+package com.earth2me.essentials.geoip;
+
+import com.earth2me.essentials.api.IEssentials;
+import com.earth2me.essentials.settings.geoip.GeoIP;
+import com.earth2me.essentials.storage.AsyncStorageObjectHolder;
+import java.io.File;
+import java.io.IOException;
+import org.bukkit.plugin.Plugin;
+
+public class ConfigHolder extends AsyncStorageObjectHolder<GeoIP>
+{
+ private final transient Plugin geoip;
+
+ public ConfigHolder(final IEssentials ess, final Plugin geoip)
+ {
+ super(ess, GeoIP.class);
+ this.geoip = geoip;
+ onReload();
+ }
+
+ @Override
+ public File getStorageFile() throws IOException
+ {
+ return new File(geoip.getDataFolder(), "config.yml");
+ }
+
+}