Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. protected static void open() {
  2. String url = "jdbc:mysql://127.0.0.1/cash";
  3. String user = "root";
  4. String password = "vertrigo";
  5.  
  6. try {
  7. con = DriverManager.getConnection(url, user, password);
  8. sc.sendMessage(Metodos.prefix + "§aConexão com MySQL aberta com sucesso!");
  9. } catch (SQLException e) {
  10. Main.getPlugin().getPluginLoader().disablePlugin(Main.getPlugin());
  11. sc.sendMessage(Metodos.prefix + "§cConexão com MySQL falhou!");
  12. sc.sendMessage(Metodos.prefix + "§cPlugin desabilitado!");
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement