So, I was making a plugin using SQL today (using -_Husky_- 's tutorial), but I was unsure how to make the connection values configurable: Code:java MySQL MySQL = new MySQL(plugin, "host.name", "port", "database", "user", "pass"); Just to be clear, the strings.
1Achmed1 Code:java String host = config.getString("host");int port = config.getInt("port");//... MySQL sql = new MySQL(plugin, host, port, database, user, pass); http://wiki.bukkit.org/Configuration_API_Reference
chasechocolate Thanks I already knew about the Config API Reference, just not setting the values EDIT: That had me change it to public MySQL(Plugin plugin, String hostname, int port2, String database, String username, String password) { super(plugin); this.hostname = hostname; this.port = port2; this.database = database; this.user = username; this.password = password; this.connection = null; }