mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-22 09:14:35 +01:00
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:
@@ -73,9 +73,13 @@ public class BanModule extends GameContextModule {
|
|||||||
|
|
||||||
String playerIpAddress;
|
String playerIpAddress;
|
||||||
for (Player player : playerList) {
|
for (Player player : playerList) {
|
||||||
|
if (player.getSession() == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
playerIpAddress = player.getSession().getIpAddress();
|
playerIpAddress = player.getSession().getIpAddress();
|
||||||
if (playerIpAddress == null) {
|
if (playerIpAddress == null) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kick player
|
// Kick player
|
||||||
|
|||||||
Reference in New Issue
Block a user