fix: removing or those stuff on IP filtering

This commit is contained in:
ChomeNS
2025-01-18 15:28:05 +07:00
parent ae7fe63846
commit e96e8bc951
2 changed files with 6 additions and 1 deletions

View File

@@ -1 +1 @@
1483
1484

View File

@@ -143,6 +143,11 @@ public class IPFilterPlugin extends PlayersPlugin.Listener {
}
private void handleFilterManager (String ip, PlayerEntry entry) {
// this can break other filters for this player (if they are filtered)
// but for now it will fix a case when someone removes an ip and that
// player will still get filtered
if (!localList.contains(ip)) bot.filterManager.remove(entry.profile.getName());
for (String eachIP : localList) {
if (!eachIP.equals(ip)) continue;