Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected static void open() {
- String url = "jdbc:mysql://127.0.0.1/cash";
- String user = "root";
- String password = "vertrigo";
- try {
- con = DriverManager.getConnection(url, user, password);
- sc.sendMessage(Metodos.prefix + "§aConexão com MySQL aberta com sucesso!");
- } catch (SQLException e) {
- Main.getPlugin().getPluginLoader().disablePlugin(Main.getPlugin());
- sc.sendMessage(Metodos.prefix + "§cConexão com MySQL falhou!");
- sc.sendMessage(Metodos.prefix + "§cPlugin desabilitado!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement