<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How can I check for a certain chat message and then execute some code?]]></title><description><![CDATA[<p dir="auto">read Title</p>
]]></description><link>https://forum.liquidbounce.net/topic/3645/how-can-i-check-for-a-certain-chat-message-and-then-execute-some-code</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 21:33:04 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/3645.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Feb 2022 19:36:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I check for a certain chat message and then execute some code? on Thu, 17 Feb 2022 14:32:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bosscreeper48" aria-label="Profile: bosscreeper48">@<bdi>bosscreeper48</bdi></a> then you're good to go</p>
]]></description><link>https://forum.liquidbounce.net/post/28736</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/28736</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 17 Feb 2022 14:32:09 GMT</pubDate></item><item><title><![CDATA[Reply to How can I check for a certain chat message and then execute some code? on Thu, 17 Feb 2022 14:31:46 GMT]]></title><description><![CDATA[<p dir="auto">@ender1355-0 yes thats what im doing rn</p>
]]></description><link>https://forum.liquidbounce.net/post/28735</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/28735</guid><dc:creator><![CDATA[BossCreeper48]]></dc:creator><pubDate>Thu, 17 Feb 2022 14:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to How can I check for a certain chat message and then execute some code? on Thu, 17 Feb 2022 14:30:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bosscreeper48" aria-label="Profile: bosscreeper48">@<bdi>bosscreeper48</bdi></a> np, btw you can check the LB ScriptAPI docs to learn more</p>
]]></description><link>https://forum.liquidbounce.net/post/28734</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/28734</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 17 Feb 2022 14:30:08 GMT</pubDate></item><item><title><![CDATA[Reply to How can I check for a certain chat message and then execute some code? on Thu, 17 Feb 2022 14:27:56 GMT]]></title><description><![CDATA[<p dir="auto">@ender1355-0 ty</p>
]]></description><link>https://forum.liquidbounce.net/post/28733</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/28733</guid><dc:creator><![CDATA[BossCreeper48]]></dc:creator><pubDate>Thu, 17 Feb 2022 14:27:56 GMT</pubDate></item><item><title><![CDATA[Reply to How can I check for a certain chat message and then execute some code? on Thu, 17 Feb 2022 14:24:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bosscreeper48" aria-label="Profile: bosscreeper48">@<bdi>bosscreeper48</bdi></a> its on scriptapi v2</p>
]]></description><link>https://forum.liquidbounce.net/post/28732</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/28732</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 17 Feb 2022 14:24:05 GMT</pubDate></item><item><title><![CDATA[Reply to How can I check for a certain chat message and then execute some code? on Thu, 17 Feb 2022 14:19:52 GMT]]></title><description><![CDATA[<p dir="auto">@ali00035_ Is this using API v1 orv 2?</p>
]]></description><link>https://forum.liquidbounce.net/post/28731</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/28731</guid><dc:creator><![CDATA[BossCreeper48]]></dc:creator><pubDate>Thu, 17 Feb 2022 14:19:52 GMT</pubDate></item><item><title><![CDATA[Reply to How can I check for a certain chat message and then execute some code? on Wed, 16 Feb 2022 11:39:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/test55555" aria-label="Profile: test55555">@<bdi>test55555</bdi></a></p>
<pre><code>var S02 = Java.type("net.minecraft.network.play.server.S02PacketChat");

module.on('packet', function (e) {
	var packet = e.getPacket();
	if (packet instanceof S02) {
		var msg = packet.getChatComponent().getUnformattedText();
		if (msg.contains("string goes here")) {
			// your code
         }
}
}
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/28705</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/28705</guid><dc:creator><![CDATA[monke fard]]></dc:creator><pubDate>Wed, 16 Feb 2022 11:39:18 GMT</pubDate></item></channel></rss>