Skip to content

Commit

Permalink
Add config option to allow Geyser players bypass anti-bot checks
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNugget committed Jul 24, 2024
1 parent 60936d2 commit 0753e63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/elytrium/limbofilter/LimboFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ public boolean shouldCheck(Player player) {
return false;
}

if (player.getRemoteAddress().getPort() == 0 && !this.checkCpsLimit(Settings.IMP.MAIN.FILTER_AUTO_TOGGLE.GEYSER_BYPASS)) {
return false;
}

return this.shouldCheck(player.getUsername(), player.getRemoteAddress().getAddress());
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/elytrium/limbofilter/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ public static class FILTER_AUTO_TOGGLE {
})
public int ONLINE_MODE_BYPASS = 49;

@Comment("Geyser players will bypass all anti-bot checks.")
public int GEYSER_BYPASS = 0;

@Comment({
"Verify Online Mode connection before AntiBot.",
"If connections per unit of time amount is bigger than the limit: online mode players will need to reconnect.",
Expand Down

0 comments on commit 0753e63

Please sign in to comment.