Skip to content

Commit

Permalink
idior
Browse files Browse the repository at this point in the history
  • Loading branch information
7003Mars committed Nov 19, 2023
1 parent b82414c commit ed731ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/mindustry/plugin/minimods/NoBots.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,16 @@ public void registerEvents() {
int ip = convertIp(con.address);
for (int i = 0; i < ips.length; i++) {
if (ips[i] == (ip >>> masks[i])) {
// REMOVEME
// Log.err("Block @", con.address);
Call.kick(con, "This ip is blocked, try disabling any vpn\ndiscord.phoenix-network.dev");
con.kick();
con.kicked = true;
con.close();
return;
}
}
Log.info("Ip not blocked: @",con.address);
});
}

Expand Down

0 comments on commit ed731ed

Please sign in to comment.