This commit is contained in:
ZeoNight 2022-05-14 20:08:53 +00:00 committed by GitHub
parent 8f72db8366
commit 66417f95c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ public class AdBlock extends Module {
}
PacketEvent pe = (PacketEvent) event;
if (pe.getPacket() instanceof GameMessageS2CPacket msg) {
if (msg.getMessage().getString().contains("[AD]") || msg.getMessage().getString().contains("[Minehut]") || msg.getMessage().contains("https://minecraftservers.org/vote/443456")) {
if (msg.getMessage().getString().contains("[AD]") || msg.getMessage().getString().contains("[Minehut]") || msg.getMessage().getString().contains("https://minecraftservers.org/vote/443456")) {
event.setCancelled(true);
blocked++;
}