mirror of
https://github.com/Miasmusa/Shadow.git
synced 2024-11-25 08:47:51 -05:00
pain
This commit is contained in:
parent
8f72db8366
commit
66417f95c1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ public class AdBlock extends Module {
|
||||||
}
|
}
|
||||||
PacketEvent pe = (PacketEvent) event;
|
PacketEvent pe = (PacketEvent) event;
|
||||||
if (pe.getPacket() instanceof GameMessageS2CPacket msg) {
|
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);
|
event.setCancelled(true);
|
||||||
blocked++;
|
blocked++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue