fix,refactor: fix findalts and use thenApplyAsync instead of thenApply for non-blocking

This commit is contained in:
ChomeNS
2024-11-16 18:41:34 +07:00
parent 9b824e195a
commit 65aa230260
10 changed files with 21 additions and 23 deletions

View File

@@ -50,7 +50,7 @@ public class PlayersPersistentDataPlugin extends PlayersPlugin.Listener {
future.completeOnTimeout(null, 5, TimeUnit.SECONDS);
future.thenApply(output -> {
future.thenApplyAsync(output -> {
if (output != null) {
object.getAsJsonObject("ips").addProperty(bot.host + ":" + bot.port, output);
}