refactor: use database to handle getPlayerIP when possible & some misc refactor with findalts

This commit is contained in:
ChomeNS
2024-12-29 17:54:47 +07:00
parent 9413b493ea
commit c3ae616292
4 changed files with 60 additions and 18 deletions

View File

@@ -106,7 +106,7 @@ public class PlayersDatabasePlugin extends PlayersPlugin.Listener {
insertPlayerStatement.executeUpdate();
final CompletableFuture<String> future = bot.players.getPlayerIP(target);
final CompletableFuture<String> future = bot.players.getPlayerIP(target, true);
if (future == null) return;