- Open the file from src/main/ga/fmohican/sql/SQLWL.java
- Edit
DriverManager.getConnection("jdbc:mysql://SQL-SERVER-ADDRESS:SQL-SERVER-PORT/SQL-DATABASE", "SQL-USER", "SQL-PASSWORD");
- Edit with what you need. The script will count result. So if in database exist any entity the player will be allowed on server
ResultSet rs = stmt.executeQuery("select `user` from `beta` where ( `user`='" + newname + "' AND `whitelist` = 1 );");
-
Run gradlew build
-
Copy complied file from /build/libs/ the file will be named SQLWhitelist-0.0.1.jar
-
Enjoy