Memeware 7.3 Death Insult: Full Source Analysis
Memeware 7.3's Death Insult module watches the inbound S02PacketChat stream and turns the local player's kills into an automatic trash-talk broadcast.
Published 2026-08-12 · Updated 2026-08-12
Packets This Module Uses
Analysis
Overview
Memeware 7.3's Death Insult module watches the inbound S02PacketChat stream and turns the local player's kills into an automatic trash-talk broadcast. One LWJEB handler on PacketInEvent unpacks each chat packet's unformatted text and matches it against a set of death-message patterns - 'killed by <name>', 'slain by <name>', the void/fall/magic escape variants, the Spanish 'asesino ha' form, and the 'You recieved a reward for killing' server-reward line. On a match it sends a C01PacketChatMessage composed of one randomly chosen insult from a hardcoded 58-line pool plus a freshly generated 12-character hex token in brackets. The module has no throttle and no memory of prior responses: every matching S02 triggers one send, so a kill streak becomes a burst of insults, each one textually unique thanks to the random suffix.
Architecture
The module is one @Handler Consumer<PacketInEvent> plus a static message pool. The handler guards on the local player existing and the packet being an S02PacketChat, then reads func_148915_c().getUnformattedText() - the chat component's plain text with formatting codes stripped - and runs a chain of contains() tests plus one startsWith/contains pair. The patterns cover the standard vanilla death messages ('killed by', 'slain by', 'void while escaping', 'was killed with magic while fighting', 'couldn't fly while escaping', 'fell to their death while escaping'), a Spanish localization form (player name, an opening parenthesis and 'asesino ha'), and two reward lines ('You recieved a reward for killing', 'You have been rewarded $50 and 2 point(s)!'). Every test embeds mc.thePlayer.getName(), so only messages naming the local player match. There is no cooldown, no seen-message cache, and no enabled-state interaction beyond the handler itself: each matching S02 yields exactly one sendChatMessage.
Message generation
randomMessage() picks from a static 58-entry array with RandomUtils.nextInt(0, randomMessages.length - 1), which draws indices in [0, 57) - the last entry ('did you forget the attack button?') is unreachable by the off-by-one bound. The chosen line is concatenated with ' [' and RandomStringUtils.random(12, 'abcdef0123456789'), producing e.g. 'I don't cheat, you just need to click faster [3f9a2c1b7d4e]'. The hex token is regenerated per message, so two responses are never byte-identical even when the same insult is drawn twice. The send path is mc.thePlayer.sendChatMessage, which constructs a C01PacketChatMessage through the vanilla chat pipeline; since the insult text starts with a letter, the Commands module's dot-prefix interceptor leaves it alone. The pool itself is a mix of taunts and edgy one-liners stored inline in the class, which is why the module needs no supporting file.
Wire behavior
Outbound, the server sees normal chat: one C01 per matching death message, at the player's discretion of timing (death events), with content drawn from a closed 58-string pool plus a random hex suffix. Inbound, the module depends entirely on the server broadcasting death notifications as S02 chat - on servers that announce kills through titles, action bars or scoreboards instead, the patterns never match and the module is inert. Because there is no response cache, a kill streak produces one insult per kill with no gap control, and any server plugin that rewrites death text (prefixes, color, translated wording) silently breaks the string matches. The hex suffix is the module's one deliberate evasion device: it exists so repeated kills do not produce repeated chat lines for repeat-message filters to catch.
source DeathInsult.java (death-message trigger and insult sender)
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
What this file does
The file is self-contained: a static randomMessage() with the 58-line insult pool and the eventConsumer0 handler over PacketInEvent. The handler reads each S02PacketChat's unformatted text, applies the contains()/startsWith() pattern chain built around mc.thePlayer.getName(), and on any match calls sendChatMessage with the insult plus a fresh 12-hex-character bracket token from RandomStringUtils. Notable details: RandomUtils.nextInt(0, randomMessages.length - 1) makes the array's last entry unreachable; there is no cooldown or deduplication, so a kill streak yields one send per matching packet; and the pattern set includes a Spanish 'asesino ha' form and two reward lines ('You recieved a reward for killing', 'You have been rewarded $50 and 2 point(s)!') in addition to the vanilla death messages. The module touches no client utility - the send path is the vanilla sendChatMessage - which is why the analysis has a single file.
anticheat Countering Checks
The anticheat code that detects or counters the techniques this module uses. Full source, with the detection mechanism explained below each box.
anticheat NoCheatPlus Text (repeat, notLetter and frequency scoring)
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | |
| 254 | |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | |
| 264 | |
| 265 | |
| 266 | |
| 267 | |
| 268 | |
| 269 | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | |
| 279 | |
| 280 | |
| 281 | |
| 282 | |
| 283 | |
| 284 | |
| 285 | |
| 286 | |
| 287 | |
| 288 | |
| 289 | |
| 290 | |
| 291 | |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | |
| 301 | |
| 302 | |
| 303 | |
| 304 | |
| 305 | |
| 306 | |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 311 | |
| 312 | |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | |
| 318 | |
| 319 | |
| 320 | |
| 321 | |
| 322 | |
| 323 | |
| 324 | |
| 325 | |
| 326 | |
| 327 | |
| 328 | |
| 329 | |
| 330 | |
| 331 | |
How it counteracts this module
NCP's Text check scores exactly the messages this module emits. The strongest specific hit is the hex token: each message ends in a 14-character bracket word like '[3f9a2c1b7d4e]' whose characters are all non-letters, and the per-word path computes getNotLetterRatio() squared (lines 209-231), so that single token contributes a large squared weight to every insult. The frequency accumulators - chatFrequency and chatShortTermFrequency with minimum floors and windowed levels (lines 257-265) - then carry that weight: a kill streak is a burst of insults at death-event rate, which is exactly the short-term burst pattern the short-term accumulator exists to catch, and each violation adds to textVL and triggers captcha or actions (lines 267-294).
The repeat-similarity path is where the module's evasion shows: isSimilar(lcMessage, chatLastMessage, 0.8f) within 8000ms (lines 174-179) compares full messages, and the regenerated hex suffix makes consecutive insults differ, so back-to-back kills are not caught by text similarity alone - the suffix exists precisely to defeat this. The honest residual is that the same insult line drawn twice (roughly 1 in 58 per pair) within 8 seconds still trips the comparison, and the no-moving penalty (textMsgNoMoving, lines 200-202) applies to a player standing still while the insults go out. Content-wise the fixed 58-line pool is also finite: over a long session the engine and word processors see the same taunts repeatedly, feeding the per-word scoring.
anticheat NoCheatPlus Captcha (auto-armed chat gate)
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
How it counteracts this module
A kill-streak burst that trips Text's short-term accumulator arms the captcha: shouldStartCaptcha (lines 105-108) returns true while CHAT_CAPTCHA is active and no captcha is pending, and Text calls sendNewCaptcha on the first violation (Text line 278). The captcha is a random string of cc.captchaLength characters, and checkCaptcha accepts only message.equals(data.captchaGenerated) - an exact match (line 41). The module has no way to comply: it cannot detect the captcha question in the inbound stream (its patterns match only death lines), and its next send is the next insult, which fails the equality test, increments captchTries and captchaVL, and after cc.captchaTries attempts executes cc.captchaActions (lines 47-61).
The interaction is therefore self-escalating: the more kills the player gets, the more insults the module sends, the faster the failed captcha attempts accumulate, and the server's configured kick/ban action fires while the module keeps churning out wrong answers. The only escape is manual intervention - disabling the module and typing the exact generated string - which the module's design cannot perform. This is the cleanest server-side counter available: it does not need to identify the insult text at all, only to survive the burst long enough to arm the gate.
anticheat Spartan ChatEvent (chat hook, no chat analysis)
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
How it counteracts this module
Spartan's only chat-side hook is this standalone listener: @EventHandler at EventPriority.HIGHEST on AsyncPlayerChatEvent, whose body resolves the player's protocol wrapper and hands the event to the check-runner thread via p.executeRunners(e.isCancelled(), e). The honest note is that the corpus contains no Spartan chat-content or spam check consuming this event - it is a dispatch shim into Spartan's runner framework, so it neither detects nor blocks the insult stream by itself.
What it does establish is the message's exposure: Spartan listens at HIGHEST, so any moderation plugin at NORMAL or LOW priority sees the raw AsyncPlayerChatEvent first, including the 'insult [hex12]' shape. The bracket-token format is a trivially regexable tell ('\[[0-9a-f]{12}\]' at end of message) that no legitimate player produces, and the death-triggered timing (a chat line appearing within a second of every kill) is visible to any plugin that correlates chat with death events. The countering story is therefore ecosystem-level: Spartan itself contributes nothing, but the event chain it sits in exposes exactly the fingerprint a plugin-based filter would key on.