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

Commit

Permalink
fix: System.out.print
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Jan 24, 2022
1 parent 35bae1f commit 0a86e41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void run() {
JSONObject json;
try (Response response = client.newCall(request).execute()) {
if (response.code() != 200) {
System.out.printf("OnLoginAfterCheck: APIサーバへの接続に失敗: %s -> %d%n", url, response.code());
Main.getMyMaidLogger().info("OnLoginAfterCheck: APIサーバへの接続に失敗: %s -> %d%n".formatted(url, response.code()));
response.close();
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,20 @@ public void run() {

Response response = client.newCall(request).execute();
if (response.code() != 200 && response.code() != 302) {
System.out.printf("NewPlayerAutoBlMap: APIサーバへの接続に失敗: %d %s\nhttps://jaoafa.com/cp/?uuid=%s%n", response.code(), Objects.requireNonNull(response.body()).string(), player.getUniqueId());
Main.getMyMaidLogger().info("NewPlayerAutoBlMap: APIサーバへの接続に失敗: %d %s\nhttps://jaoafa.com/cp/?uuid=%s".formatted(response.code(), Objects.requireNonNull(response.body()).string(), player.getUniqueId()));
response.close();
return;
}
if (response.body() == null) {
System.out.printf("NewPlayerAutoBlMap: APIサーバへの接続に失敗: response.body() is null.\nhttps://jaoafa.com/cp/?uuid=%s%n", player.getUniqueId());
Main.getMyMaidLogger().info("NewPlayerAutoBlMap: APIサーバへの接続に失敗: response.body() is null.\nhttps://jaoafa.com/cp/?uuid=%s".formatted(player.getUniqueId()));
response.close();
return;
}
Main.getMyMaidLogger().info("NewPlayerAutoBlMap: ブロック編集マップ取得完了");

ResponseBody body = response.body();
if (body == null) {
System.out.printf("NewPlayerAutoBlMap: ブロック編集マップ取得失敗: body is null.\nhttps://jaoafa.com/cp/?uuid=%s%n", player.getUniqueId());
Main.getMyMaidLogger().info("NewPlayerAutoBlMap: ブロック編集マップ取得失敗: body is null.\nhttps://jaoafa.com/cp/?uuid=%s".formatted(player.getUniqueId()));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/jaoafa/mymaid4/lib/MyMaidLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public static void debug(String message) {
if (!Main.getMyMaidConfig().isDevelopmentServer()) {
return;
}
System.out.printf("DEBUG -> %s%n", message);
Main.getMyMaidLogger().info("DEBUG -> %s".formatted(message));
}

public static NamedTextColor getNamedTextColor(String color) {
Expand Down

0 comments on commit 0a86e41

Please sign in to comment.