No need to download MySQL connector anymore

This commit is contained in:
DiddiZ
2011-12-20 02:36:03 +01:00
parent 41397c6b64
commit 9746e247b6
-5
View File
@@ -67,11 +67,6 @@ public class LogBlock extends JavaPlugin
config = new Config(this);
if (config.checkVersion)
getLogger().info("[LogBlock] Version check: " + updater.checkVersion());
final File file = new File("lib/mysql-connector-java-bin.jar");
if (!file.exists() || file.length() == 0)
download(getLogger(), new URL("http://diddiz.insane-architects.net/download/mysql-connector-java-bin.jar"), file);
if (!file.exists() || file.length() == 0)
throw new FileNotFoundException(file.getAbsolutePath() + file.getName());
getLogger().info("[LogBlock] Connecting to " + config.user + "@" + config.url + "...");
pool = new MySQLConnectionPool(config.url, config.user, config.password);
final Connection conn = getConnection();