From f2e31e56c560a94c87b75bf4f0a9c895ce83fe16 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 6 Oct 2012 11:06:52 +0200 Subject: Fix startup errors --- EssentialsGeoIP/src/net/ess3/geoip/EssentialsGeoIPPlayerListener.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'EssentialsGeoIP/src') 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 -- cgit v1.2.3