From c9ee80dd38bd4f1542c80de8c126bc72e1d33d90 Mon Sep 17 00:00:00 2001 From: Jkobs <66284145+Minzilein2003@users.noreply.github.com> Date: Tue, 16 May 2023 19:08:48 +0200 Subject: [PATCH] Update T2CnameHistory.java --- .../t2code/t2codelib/SPIGOT/api/player/T2CnameHistory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/player/T2CnameHistory.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/player/T2CnameHistory.java index be7e09f..4238abb 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/player/T2CnameHistory.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/player/T2CnameHistory.java @@ -5,7 +5,6 @@ import com.google.gson.JsonObject; import com.google.gson.annotations.SerializedName; import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; - import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; @@ -13,6 +12,7 @@ import java.net.HttpURLConnection; import java.net.URL; import java.util.Date; import java.util.UUID; +import java.util.stream.Collectors; public class T2CnameHistory { public static class NameLookup { @@ -93,7 +93,7 @@ public class T2CnameHistory { con.setReadTimeout(2000); con.connect(); BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())); - String response = in.readLine(); + String response = in.lines().collect(Collectors.joining()); in.close(); return response; } -- 2.34.1