Fix null IP handling in ban IP processing

- Continue loop instead of returning for empty IPs
- Prevent single null IP from interrupting entire ban check
This commit is contained in:
HongchengQ
2025-12-13 23:34:16 +08:00
committed by Melledy
parent 4fb2712a89
commit f439b25f2a

View File

@@ -73,9 +73,13 @@ public class BanModule extends GameContextModule {
String playerIpAddress;
for (Player player : playerList) {
if (player.getSession() == null) {
continue;
}
playerIpAddress = player.getSession().getIpAddress();
if (playerIpAddress == null) {
return;
continue;
}
// Kick player