summaryrefslogtreecommitdiffstats
path: root/EssentialsGeoIP/src
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-10-06 11:06:52 +0200
committersnowleo <schneeleo@gmail.com>2012-10-06 11:06:52 +0200
commitf2e31e56c560a94c87b75bf4f0a9c895ce83fe16 (patch)
tree33ba9089ec9e6cb43c2994266aece348869bf7cd /EssentialsGeoIP/src
parent21b2e4b072f275bdfa12408e793d4b0689114e94 (diff)
downloadEssentials-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')
-rw-r--r--EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java3
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