<?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 to change settings of modules via chat which are made using scripts]]></title><description><![CDATA[<p dir="auto">If the title is a bit confusing, look at this example:</p>
<p dir="auto">In the LiquidBounce native Spammer module the message setting can be changed like this via chat:<br />
".spammer message asdasd"</p>
<p dir="auto">But if i create a module via script and want to do the same thing with a string setting:<br />
".scriptmodule message asdasd"<br />
I get a syntax usage in the chat instead of changing the value.</p>
<p dir="auto">Can this issue be fixed by me or is it caused by LiquidBounce?</p>
<p dir="auto">example script:</p>
<pre><code>/// api_version=2

var script = registerScript({
	name: 'example',
	version: '1',
	authors: ['example']
})

script.registerModule({
	name: 'Example',
	category: 'Misc',
	description: 'example',
    settings: {
        text: Setting.text({
            name: "text",
            default: 'sssss'
        }),
        int: Setting.integer({
            name: "int",
            default: 1000,
            min: 50,
      	    max: 5000
        })
    }
}, function() {})
</code></pre>
]]></description><link>https://forum.liquidbounce.net/topic/2525/how-to-change-settings-of-modules-via-chat-which-are-made-using-scripts</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 11:23:25 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/2525.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Jun 2021 10:06:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 17:33:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faaatpotato" aria-label="Profile: FaaatPotato">@<bdi>FaaatPotato</bdi></a><br />
yeah, your example works on b73, previously played with b72. sorry about that<br />
seems to be fixed in b73, sorry to bother you all</p>
]]></description><link>https://forum.liquidbounce.net/post/19666</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19666</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 17:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 16:10:09 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof<br />
<img src="/assets/uploads/files/1624550904665-2dc3af29-7bf4-40bd-b552-fa2915a11da8-image.png" alt="2dc3af29-7bf4-40bd-b552-fa2915a11da8-image.png" class=" img-fluid img-markdown" /><br />
works for me</p>
<pre><code>/// api_version=2
var script = registerScript({
    name: "ss",
    version: "1.0",
    authors: ["No Author ok"]
});

script.registerModule({
    name: "ssssd",
    description: "Nutting in cats is illegal",
    category: "Fun",
    tag: "s",
    settings: {
        text: Setting.text({
            name: "text",
            default: ""
        }),
    }

}, function (module) {
    module.on("enable", function () {
    	commandManager.executeCommands(".JartexL LMode "+module.settings.text.get());
    });
    module.on("disable", function () {

    });
    module.on("update", function () {
    });
});
</code></pre>
<p dir="auto">example with a script I made</p>
]]></description><link>https://forum.liquidbounce.net/post/19662</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19662</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Thu, 24 Jun 2021 16:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 15:18:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faaatpotato" aria-label="Profile: faaatpotato">@<bdi>faaatpotato</bdi></a> gives me the same error as if i would type it in the chat manually.</p>
<p dir="auto">".scriptapimodule setting 123"<br />
gives<br />
"[LiquidBounce] Syntax: .scriptapimodule &lt;setting&gt;"<br />
but doesn't change anything</p>
]]></description><link>https://forum.liquidbounce.net/post/19656</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19656</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 15:18:29 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 15:11:55 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof</p>
<p dir="auto">ok sorry, this should work then</p>
<pre><code>commandManager.executeCommands(".scriptapimodule setting "+module.settings.text.get())
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/19655</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19655</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Thu, 24 Jun 2021 15:11:55 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 15:04:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faaatpotato" aria-label="Profile: faaatpotato">@<bdi>faaatpotato</bdi></a> it wasn't meant as a challange or something but as a way to get you to understand my problem, it doesn't work if you would replace spammer with a module created with the ScriptAPI and that's my problem, nor can you change these values via ingame chat.<br />
I want to know how to fix this.</p>
]]></description><link>https://forum.liquidbounce.net/post/19650</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19650</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 15:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:55:20 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof i just gave you an example you don't need to change that much do it yourself</p>
]]></description><link>https://forum.liquidbounce.net/post/19647</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19647</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:54:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faaatpotato" aria-label="Profile: faaatpotato">@<bdi>faaatpotato</bdi></a> Spammer was just an example module to demonstrate where it would work, now make a module with a script and try to do the same</p>
]]></description><link>https://forum.liquidbounce.net/post/19646</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19646</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:54:44 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:52:57 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof well it is probably a script issue, the setting changer works with other scripts</p>
]]></description><link>https://forum.liquidbounce.net/post/19645</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19645</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:52:30 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof still not sure what u want but this script changes the spammer message if you type ingame</p>
<pre><code>.ssssd text (message you want)
</code></pre>
<pre><code>/// api_version=2
var script = registerScript({
    name: "ss",
    version: "1.0",
    authors: ["No Author ok"]
});

var Spammer = moduleManager.getModule("Spammer");

script.registerModule({
    name: "ssssd",
    description: "Nutting in cats is illegal",
    category: "Fun",
    tag: "s",
    settings: {
        text: Setting.text({
            name: "text",
            default: ""
        }),
    }

}, function (module) {
    module.on("enable", function () {

    });
    module.on("disable", function () {

    });
    module.on("update", function () {
    	moduleManager.getModule("Spammer").getValue("Message").set(module.settings.text.get())
    });
});
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/19644</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19644</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:52:30 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:41:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faaatpotato" aria-label="Profile: faaatpotato">@<bdi>faaatpotato</bdi></a> i want to set the setting of a script-created module via a chat command, like this: ".examplemodule text asd"</p>
<p dir="auto">this works fine with native modules but doesn't with script-created ones and i wonder how to fix this or another way to change a string setting ingame</p>
]]></description><link>https://forum.liquidbounce.net/post/19640</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19640</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:41:48 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:38:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/the_shadow_emp" aria-label="Profile: the_shadow_emp">@<bdi>the_shadow_emp</bdi></a> ye i guess</p>
<pre><code>var Spammer = moduleManager.getModule("Spammer");

moduleManager.getModule("Spammer").getValue("Message").set(module.settings.text.get())
</code></pre>
<p dir="auto">not sure if he wants to use the setting in the module but yeah</p>
]]></description><link>https://forum.liquidbounce.net/post/19639</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19639</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:37:30 GMT]]></title><description><![CDATA[<pre><code>moduleManager.getModule("Spammer").getValue('message').set('123')
Chat.print(moduleManager.getModule("Spammer").getValue('message').get()) // prints "123"
</code></pre>
<p dir="auto">yeah, this works, but if swapping this out with a script-created module it doesn't work anymore</p>
]]></description><link>https://forum.liquidbounce.net/post/19638</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19638</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:18:02 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof <code> moduleManager.getModule("Spammer").getValue("Message").set(your message)</code> pretty sure something like that</p>
]]></description><link>https://forum.liquidbounce.net/post/19635</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19635</guid><dc:creator><![CDATA[The_Shadow_Emp]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:18:02 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 14:12:57 GMT]]></title><description><![CDATA[<p dir="auto">@mems can you give more details? i don't really get what that page should tell me<br />
do i need to register the module to the commandManager?<br />
and if how to do that?</p>
<pre><code>commandManager.registerCommand(moduleManager.getModule('Example'))
</code></pre>
<p dir="auto">that is what i tried but it doesn't seem to work</p>
]]></description><link>https://forum.liquidbounce.net/post/19633</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19633</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 14:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 13:46:36 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof <a href="https://liquidbounce.net/docs/ScriptAPI/Global%20Instances" target="_blank" rel="noopener noreferrer nofollow ugc">https://liquidbounce.net/docs/ScriptAPI/Global Instances</a></p>
]]></description><link>https://forum.liquidbounce.net/post/19626</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19626</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 24 Jun 2021 13:46:36 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 13:43:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/the_shadow_emp" aria-label="Profile: the_shadow_emp">@<bdi>the_shadow_emp</bdi></a> can you more clearly describe what i did wrong?<br />
or can you do it right with the help of your enlightning ressource</p>
]]></description><link>https://forum.liquidbounce.net/post/19625</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19625</guid><dc:creator><![CDATA[kaduvert]]></dc:creator><pubDate>Thu, 24 Jun 2021 13:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to how to change settings of modules via chat which are made using scripts on Thu, 24 Jun 2021 13:39:35 GMT]]></title><description><![CDATA[<p dir="auto">@somedudeyouveneverheardof <a href="https://liquidbounce.net/docs/ScriptAPI/" target="_blank" rel="noopener noreferrer nofollow ugc">https://liquidbounce.net/docs/ScriptAPI/</a></p>
]]></description><link>https://forum.liquidbounce.net/post/19624</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19624</guid><dc:creator><![CDATA[The_Shadow_Emp]]></dc:creator><pubDate>Thu, 24 Jun 2021 13:39:35 GMT</pubDate></item></channel></rss>