mirror of
https://github.com/Miasmusa/Shadow.git
synced 2025-03-28 13:09:42 -04:00
Update adblock
This commit is contained in:
parent
e2b71c8e1a
commit
8f72db8366
1 changed files with 1 additions and 1 deletions
|
@ -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]")) {
|
||||
if (msg.getMessage().getString().contains("[AD]") || msg.getMessage().getString().contains("[Minehut]") || msg.getMessage().contains("https://minecraftservers.org/vote/443456")) {
|
||||
event.setCancelled(true);
|
||||
blocked++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue