refactor: rewrite AuthPlugin to be based on IP

This commit is contained in:
ChomeNS
2025-01-07 17:03:45 +07:00
parent 6164483e11
commit ae8be94be3
5 changed files with 38 additions and 116 deletions

View File

@@ -50,6 +50,8 @@ public class PlayersDatabasePlugin extends PlayersPlugin.Listener {
}
public JsonNode getPlayerData (String username) {
if (bot.database == null || bot.database.connection == null) return null;
try {
final PreparedStatement statement = bot.database.connection.prepareStatement(GET_DATA);