@@ -138,10 +138,6 @@ private CompletionStage<List<PunishmentData>> fetchPunishmentChunk(int limit, in
138138 ResultSet rs = stmt .executeQuery ();
139139
140140 while (rs .next ()) {
141- // Print fetched data.
142- String s = rs .getString ("id" ) + rs .getString ("uuid" ) + ", " + rs .getString ("reason" ) + ", " + rs .getString ("server_origin" );
143- System .out .println (s );
144-
145141 PunishmentData data = convertResultSetToData (rs );
146142 punishmentDataList .add (data );
147143 }
@@ -166,7 +162,7 @@ private PunishmentData convertEntryToData(Entry entry, boolean isRemoved) {
166162 punishmentData .server_scope = Objects .equals (entry .getServerScope (), "global" ) ? "*" : entry .getServerScope ();
167163 punishmentData .origin_server_name = entry .getServerOrigin ();
168164 punishmentData .uuid = entry .getUuid ();
169- punishmentData .ip_address = entry .getIp ();
165+ punishmentData .ip_address = Objects . equals ( entry . getIp (), "#" ) ? null : entry .getIp ();
170166 punishmentData .is_ipban = entry .isIpban ();
171167 punishmentData .creator_uuid = entry .getExecutorUUID ();
172168 punishmentData .creator_username = entry .getExecutorName ();
@@ -193,7 +189,7 @@ private PunishmentData convertResultSetToData(ResultSet rs) throws SQLException
193189 punishmentData .server_scope = rs .getString ("server_scope" );
194190 punishmentData .origin_server_name = rs .getString ("server_origin" );
195191 punishmentData .uuid = rs .getString ("uuid" );
196- punishmentData .ip_address = rs .getString ("ip" );
192+ punishmentData .ip_address = Objects . equals ( rs . getString ( "ip" ), "#" ) ? null : rs .getString ("ip" );
197193 punishmentData .is_ipban = rs .getBoolean ("ipban" );
198194 punishmentData .creator_uuid = rs .getString ("banned_by_uuid" );
199195 punishmentData .creator_username = rs .getString ("banned_by_name" );
0 commit comments