diff options
Diffstat (limited to 'EssentialsGeoIP/src/net/ess3')
-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 |