Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. private PluginDescriptionFile pdf;
  2.  
  3. public String HOST = "";
  4. public String DATABASE = "";
  5. public String USER = "";
  6. public String PASS = "";
  7.  
  8. public MySQL SQL;
  9.  
  10. public boolean connected;
  11.  
  12. @Override
  13. public void onEnable() {
  14. this.pdf = this.getDescription();
  15.  
  16. this.SQL = new MySQL((Main) Bukkit.getServer().getPluginManager().getPlugin("MySQL"), pdf.getName());
  17. this.connected = SQL.Connect(HOST, DATABASE, USER, PASS);
  18.  
  19. if(!this.connected) {
  20. this.getLogger().info("Unable to establish a MySQL connection.");
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement