File tree Expand file tree Collapse file tree
src/main/java/dev/padrewin/confirm2Drop/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import java .io .File ;
66import java .sql .*;
77
8+ import static dev .padrewin .colddev .manager .AbstractDataManager .*;
9+ import static dev .padrewin .colddev .manager .AbstractDataManager .ANSI_RESET ;
10+
811public class DatabaseManager {
912
1013 private final Confirm2Drop plugin ;
@@ -25,9 +28,9 @@ private void connect() {
2528
2629 String dbPath = dataFolder .getAbsolutePath () + File .separator + "confirm2drop.db" ;
2730 connection = DriverManager .getConnection ("jdbc:sqlite:" + dbPath );
28- plugin .getLogger ().info ("Database connected using SQLite." );
31+ plugin .getLogger ().info (ANSI_LIGHT_BLUE + "Database connected using SQLite. " + ANSI_BOLD + ANSI_GREEN + "✔" + ANSI_RESET );
2932 } catch (SQLException e ) {
30- plugin .getLogger ().warning ("Database failed to connect." );
33+ plugin .getLogger ().warning (ANSI_RED + "Database failed to connect. " + ANSI_BOLD + ANSI_RED + "✘" + ANSI_RESET );
3134 e .printStackTrace ();
3235 }
3336 }
You can’t perform that action at this time.
0 commit comments