diff options
author | snowleo <schneeleo@gmail.com> | 2012-01-24 00:01:31 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-01-24 00:01:31 +0100 |
commit | 6af054631fe04ef7a607f24e459e37836c568100 (patch) | |
tree | 55778160b5de4b4b437e7b61a470a0ce72803d93 /EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java | |
parent | 01a37df70070f50995e0314fc1af222b633af261 (diff) | |
download | Essentials-6af054631fe04ef7a607f24e459e37836c568100.tar Essentials-6af054631fe04ef7a607f24e459e37836c568100.tar.gz Essentials-6af054631fe04ef7a607f24e459e37836c568100.tar.lz Essentials-6af054631fe04ef7a607f24e459e37836c568100.tar.xz Essentials-6af054631fe04ef7a607f24e459e37836c568100.zip |
More work on 3.0 branch
Diffstat (limited to 'EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java')
-rw-r--r-- | EssentialsGeoIP/src/com/earth2me/essentials/geoip/ConfigHolder.java | 27 |
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"); + } + +} |