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

Commit

Permalink
fix: #917 lastCheckedAtはStringなのにgetLongでとってた不具合の修正 (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Aug 11, 2022
1 parent 054321c commit 49cd318
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("playerId"), 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")), parseDate(json.getString("lastCheckedAt")));
}

public OfflinePlayer getPlayer() {
Expand Down

0 comments on commit 49cd318

Please sign in to comment.