Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix: MCBansCacheのパラメーターがidではなくplayerIdだった (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Aug 10, 2022
1 parent a94a390 commit ba74ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jaoafa/mymaid4/lib/MCBansCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ba74ccb

Please sign in to comment.