Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class.forName("com.mysql.jdbc.Driver");
- String url = "jdbc:mysql://" + this.plugin.configManager.mysqlHost + "/" + this.plugin.configManager.mysqlBase;
- return DriverManager.getConnection(url, this.plugin.configManager.mysqlUser, this.plugin.configManager.mysqlPass);
- this.plugin.getConfig().set("config.mysql.host", this.mysqlHost);
- this.plugin.getConfig().set("config.mysql.base", this.mysqlBase);
- this.plugin.getConfig().set("config.mysql.user", this.mysqlUser);
- this.plugin.getConfig().set("config.mysql.password", this.mysqlPass);
- this.mysqlHost = this.plugin.getConfig().getString("config.mysql.host");
- this.mysqlBase = this.plugin.getConfig().getString("config.mysql.base");
- this.mysqlUser = this.plugin.getConfig().getString("config.mysql.user");
- this.mysqlPass = this.plugin.getConfig().getString("config.mysql.password");
- mysql:
- host: ""
- base: ""
- user: ""
- password: ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement