diff options
author | snowleo <schneeleo@gmail.com> | 2012-10-06 11:06:52 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-10-06 11:06:52 +0200 |
commit | f2e31e56c560a94c87b75bf4f0a9c895ce83fe16 (patch) | |
tree | 33ba9089ec9e6cb43c2994266aece348869bf7cd /EssentialsGeoIP/src/net/ess3/geoip | |
parent | 21b2e4b072f275bdfa12408e793d4b0689114e94 (diff) | |
download | Essentials-f2e31e56c560a94c87b75bf4f0a9c895ce83fe16.tar Essentials-f2e31e56c560a94c87b75bf4f0a9c895ce83fe16.tar.gz Essentials-f2e31e56c560a94c87b75bf4f0a9c895ce83fe16.tar.lz Essentials-f2e31e56c560a94c87b75bf4f0a9c895ce83fe16.tar.xz Essentials-f2e31e56c560a94c87b75bf4f0a9c895ce83fe16.zip |
Fix startup errors
Diffstat (limited to 'EssentialsGeoIP/src/net/ess3/geoip')
-rw-r--r-- | EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java b/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java index 676539b08..d2a30dbd8 100644 --- a/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java +++ b/EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java @@ -167,6 +167,9 @@ public class EssentialsGeoIPPlayerListener implements Listener, IReload LOGGER.log(Level.SEVERE, _("geoIpUrlEmpty")); return; } + if (!databaseFile.getAbsoluteFile().getParentFile().exists()) { + databaseFile.getAbsoluteFile().getParentFile().mkdirs(); + } InputStream input = null; OutputStream output = null; try |