Enable chat filter for game messages as well (#251)

This commit is contained in:
Lucwousin
2019-05-15 00:43:21 +02:00
committed by Kyleeld
parent 12ab975e0c
commit f4e1cb22b8
2 changed files with 4 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ public class HydraPlugin extends Plugin
log.debug("Tried some weird shit"); log.debug("Tried some weird shit");
break; break;
} }
} }
else if (actor.getAnimation() == phase.getSpecAnimationId() && phase.getSpecAnimationId() != 0) else if (actor.getAnimation() == phase.getSpecAnimationId() && phase.getSpecAnimationId() != 0)
{ {
@@ -232,8 +232,8 @@ public class HydraPlugin extends Plugin
if (poisonProjectiles.isEmpty()) if (poisonProjectiles.isEmpty())
{ {
// Only add 9 to next special on the first poison projectile (whoops) // Only add 9 to next special on the first poison projectile (whoops)
hydra.setNextSpecial(hydra.getNextSpecial() + 9); hydra.setNextSpecial(hydra.getNextSpecial() + 9);
} }
poisonProjectiles.put(event.getPosition(), projectile); poisonProjectiles.put(event.getPosition(), projectile);
} }
else if (client.getTickCount() != lastAttackTick else if (client.getTickCount() != lastAttackTick

View File

@@ -108,6 +108,7 @@ public class ChatFilterPlugin extends Plugin
case PRIVATECHAT: case PRIVATECHAT:
case MODPRIVATECHAT: case MODPRIVATECHAT:
case FRIENDSCHAT: case FRIENDSCHAT:
case GAMEMESSAGE:
break; break;
default: default:
return; return;