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() {