Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private PluginDescriptionFile pdf;
- public String HOST = "";
- public String DATABASE = "";
- public String USER = "";
- public String PASS = "";
- public MySQL SQL;
- public boolean connected;
- @Override
- public void onEnable() {
- this.pdf = this.getDescription();
- this.SQL = new MySQL((Main) Bukkit.getServer().getPluginManager().getPlugin("MySQL"), pdf.getName());
- this.connected = SQL.Connect(HOST, DATABASE, USER, PASS);
- if(!this.connected) {
- this.getLogger().info("Unable to establish a MySQL connection.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement