<?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[Cant find the problem in my code]]></title><description><![CDATA[<p dir="auto">this is my script and i dont know where the problem is ._. pls help</p>
<p dir="auto">var scriptName = "InvSort";<br />
var scriptAuthor = "ByGraf";<br />
var scriptVersion = 1.0;<br />
var x = 0;<br />
var y = 0;<br />
var bridge = value.createBoolean("bridge", false);<br />
var bw = value.createBoolean("bw", false);</p>
<p dir="auto">function Sort() {</p>
<pre><code>this.addValues = function(values) {
    values.add(bridge);
    values.add(bw);
}


this.onEnable = function() {
    x = 0;
    y = 0;
};

this.onDisable = function() {
    x = 0;
    y = 0;
};


this.getName = function() {
    return "InvSort";
}
this.getCategory = function() {
    return "Player";   
}

this.getDescription = function() {
    return "Inventorycleaner addon";
}

this.onUpdate = function(){
    if(!bridge.get()){
        x = 0;
    }

    if (!bw.get()){
        y = 0;
    }

    if (bridge.get() &amp;&amp; x == 0){
        commandManager.executeCommand(.inventorycleaner throwgarbage false);
        commandManager.executeCommand(.inventorycleaner sortslot-1 Sword);
        commandManager.executeCommand(.inventorycleaner sortslot-2 Pickaxe);
        commandManager.executeCommand(.inventorycleaner sortslot-3 Gapple);
        commandManager.executeCommand(.inventorycleaner sortslot-4 Bow);
        commandManager.executeCommand(.inventorycleaner sortslot-5 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-6 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-7 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-8 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-9 Block);
        x = 1;
    }
    
    if(bw.get() &amp;&amp; y == 0){
        commandManager.executeCommand(.inventorycleaner throwgarbage false);
        commandManager.executeCommand(.inventorycleaner sortslot-1 Sword);
        commandManager.executeCommand(.inventorycleaner sortslot-2 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-3 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-4 Gapple);
        commandManager.executeCommand(.inventorycleaner sortslot-5 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-6 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-7 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-8 Ignore);
        commandManager.executeCommand(.inventorycleaner sortslot-9 Block);
        y = 1;

    }

}
</code></pre>
<p dir="auto">}</p>
<p dir="auto">var module = new Sort();<br />
var Client;</p>
<p dir="auto">function onEnable() {<br />
Client = moduleManager.registerModule(module);</p>
<p dir="auto">}</p>
<p dir="auto">function onDisable() {<br />
moduleManager.unregisterModule(Client);</p>
<p dir="auto">}</p>
]]></description><link>https://forum.liquidbounce.net/topic/3882/cant-find-the-problem-in-my-code</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 06:45:54 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/3882.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Apr 2022 20:13:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cant find the problem in my code on Fri, 06 May 2022 21:39:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/exit-scammed" aria-label="Profile: exit-scammed">@<bdi>exit-scammed</bdi></a> It's ok</p>
]]></description><link>https://forum.liquidbounce.net/post/30440</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/30440</guid><dc:creator><![CDATA[Ali00035]]></dc:creator><pubDate>Fri, 06 May 2022 21:39:01 GMT</pubDate></item><item><title><![CDATA[Reply to Cant find the problem in my code on Tue, 03 May 2022 11:29:13 GMT]]></title><description><![CDATA[<p dir="auto">@stfwissue LiquidBounce automatically imports its <code>commandManager</code> variable while loading the script. Take a look at <a href="https://github.com/CCBlueX/LiquidBounce/blob/e381b278eed90285407d373ffb42d403ba62d439/src/main/java/net/ccbluex/liquidbounce/script/Script.kt#L58" target="_blank" rel="noopener noreferrer nofollow ugc">line 58 of <code>Script.kt</code></a>:</p>
<pre><code class="language-java">scriptEngine.put("commandManager", LiquidBounce.commandManager)
</code></pre>
<p dir="auto">P/s: I didn't notice the typo, it's actually <code>executeCommands</code> instead of <code>executeCommand</code>.</p>
<pre><code>    fun executeCommands(input: String) {
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/30318</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/30318</guid><dc:creator><![CDATA[exit scammed]]></dc:creator><pubDate>Tue, 03 May 2022 11:29:13 GMT</pubDate></item><item><title><![CDATA[Reply to Cant find the problem in my code on Tue, 03 May 2022 09:49:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/exit-scammed" aria-label="Profile: exit-scammed">@<bdi>exit-scammed</bdi></a> I think that's supposed to be like this</p>
<pre><code>var LB = Java.type("net.ccbluex.liquidbounce.LiquidBounce");

LB.commandManager.executeCommands(".inventorycleaner throwgarbage false");
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/30317</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/30317</guid><dc:creator><![CDATA[Ali00035]]></dc:creator><pubDate>Tue, 03 May 2022 09:49:27 GMT</pubDate></item><item><title><![CDATA[Reply to Cant find the problem in my code on Sat, 16 Apr 2022 06:54:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/exit-scammed" aria-label="Profile: exit-scammed">@<bdi>exit-scammed</bdi></a> ahh lol thx</p>
]]></description><link>https://forum.liquidbounce.net/post/29922</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/29922</guid><dc:creator><![CDATA[ByGraf]]></dc:creator><pubDate>Sat, 16 Apr 2022 06:54:14 GMT</pubDate></item><item><title><![CDATA[Reply to Cant find the problem in my code on Fri, 15 Apr 2022 23:12:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bygraf" aria-label="Profile: bygraf">@<bdi>bygraf</bdi></a> all commands must be placed inside quotation marks.<br />
e.g.</p>
<pre><code class="language-javascript">commandManager.executeCommand(.inventorycleaner throwgarbage false);
</code></pre>
<p dir="auto">to</p>
<pre><code class="language-javascript">commandManager.executeCommand(".inventorycleaner throwgarbage false");
</code></pre>
<p dir="auto">and the same for others.</p>
]]></description><link>https://forum.liquidbounce.net/post/29919</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/29919</guid><dc:creator><![CDATA[exit scammed]]></dc:creator><pubDate>Fri, 15 Apr 2022 23:12:15 GMT</pubDate></item></channel></rss>