diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/PlayerInfoData.java b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/PlayerInfoData.java index 6974a620..8bad0b9d 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/PlayerInfoData.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/PlayerInfoData.java @@ -80,7 +80,7 @@ public class PlayerInfoData { specific.profile.handle, specific.ping, EnumWrappers.getGameModeConverter().getGeneric(EnumWrappers.getGameModeClass(), specific.gameMode), - specific.displayName.handle + specific.displayName != null ? specific.displayName.handle : null ); return result; } catch (Exception e) { @@ -149,4 +149,4 @@ public class PlayerInfoData { return String.format("PlayerInfoData { profile=%s, ping=%s, gameMode=%s, displayName=%s }", profile, ping, gameMode, displayName); } -} \ No newline at end of file +}