From ba74ccb7a52af99273bda0cd50ed6fa01cc189c5 Mon Sep 17 00:00:00 2001 From: Tomachi <8929706+book000@users.noreply.github.com> Date: Thu, 11 Aug 2022 06:57:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20MCBansCache=E3=81=AE=E3=83=91=E3=83=A9?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=82=BF=E3=83=BC=E3=81=8Cid=E3=81=A7?= =?UTF-8?q?=E3=81=AF=E3=81=AA=E3=81=8FplayerId=E3=81=A0=E3=81=A3=E3=81=9F?= =?UTF-8?q?=20(#910)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/jaoafa/mymaid4/lib/MCBansCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/jaoafa/mymaid4/lib/MCBansCache.java b/src/main/java/com/jaoafa/mymaid4/lib/MCBansCache.java index 2dedd2af9..4430bb11c 100644 --- a/src/main/java/com/jaoafa/mymaid4/lib/MCBansCache.java +++ b/src/main/java/com/jaoafa/mymaid4/lib/MCBansCache.java @@ -61,7 +61,7 @@ public static MCBansCache get(OfflinePlayer player) throws IOException { json = new JSONObject(body.string()); } } - return new MCBansCache(player, json.getInt("id"), json.getDouble("reputation"), parseBans(json.getJSONArray("bans")), parseBans(json.getJSONArray("issuedBans")), parseServer(json.getJSONArray("ownedServers")), new Date(json.getLong("lastCheckedAt"))); + return new MCBansCache(player, json.getInt("playerId"), json.getDouble("reputation"), parseBans(json.getJSONArray("bans")), parseBans(json.getJSONArray("issuedBans")), parseServer(json.getJSONArray("ownedServers")), new Date(json.getLong("lastCheckedAt"))); } public OfflinePlayer getPlayer() {