Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.21.1: Failed parsing view condition for component! -> Issue with boolean return? #2916

Open
bobhenl opened this issue Dec 21, 2024 · 6 comments

Comments

@bobhenl
Copy link

bobhenl commented Dec 21, 2024

Are you using MySQL?

No

Are you using a proxy?

No

"/version ChatControlRed" - plugin version

11.0.3

Optional: Error log

No response

ZIP of "/chc debug"

No response

Steps to reproduce

Hello, I have:

Type: FORMAT
Key: "pack_check"
Value: |-
    checkPack();
    
    function checkPack() {
        var val = "{placeholder}";
        if (val == "response") {
            return true;
        } else {
            return false;
        }
    }
  
Sender_Condition: ""
Sender_Permission: ""

and I use it in my format:

    Receiver_Condition: '!{pack_check}'

and now I received this error:

[17:32:16] [Async Chat Thread - #6/INFO]: [Not Secure] [standard] zensif69: wew
[17:32:16] [Server thread/INFO]: ShadeStallker issued server command: /sellgui
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl] -------------------------------------------------------------------------------------------
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]  Failed parsing view condition for component!
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]  
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]  The view condition must be a JavaScript code that returns a boolean!
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]  Component: {
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]   "Condition": "!{pack_check}",
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]   "Component": "<click:suggest_command:'/msg2 Aptym4life1 '><hover:show_text:'Aptym4life1 ❤25<br>Rank: [^GUIDE]<br>Level: 8<br>--*---------------*--<br><br> ▎ Player Statistics<br> ▎ Money: $5<br> ▎ Power: 8/8<br> ▎ Exp: 9 Lvls<br> ▎ KDR: 5.00<br><br>Time Played: 104 h<br><br>(Click to message)'>[^GUIDE]"
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl] }
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]  Line: !{pack_check}
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]  Error: Report: Error parsing JavaScript! Line: 1. Error: <eval>:1:12 Expected : but found }
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl] !{pack_check}
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl]             ^ in <eval> at line number 1 at column number 12
[17:32:16] [Async Chat Thread - #6/INFO]: [ChatControl] -------------------------------------------------------------------------------------------
[17:32:16] [Async Chat Thread - #6/ERROR]: Could not pass event AsyncPlayerChatEvent to ChatControl v11.0.3-BETA
org.mineacademy.chatcontrol.lib.exception.FoScriptException: Report: Error parsing JavaScript! Line: 1. Error: <eval>:1:12 Expected : but found }
!{pack_check}
            ^ in <eval> at line number 1 at column number 12
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:330) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:216) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:156) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.SimpleComponent$ConditionalComponent.build(SimpleComponent.java:1155) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.SimpleComponent$ConditionalComponent.access$100(SimpleComponent.java:1087) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.SimpleComponent.toAdventure(SimpleComponent.java:781) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.platform.FoundationPlayer.sendMessageWithPrefix(FoundationPlayer.java:573) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.platform.FoundationPlayer.sendMessage(FoundationPlayer.java:524) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:677) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:542) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.ChatHandler.handle0(ChatHandler.java:225) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.ChatHandler.handle(ChatHandler.java:49) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.LegacyChatListener.execute(LegacyChatListener.java:37) ~[ChatControl-11.0.3-BETA.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-2329-803bf62]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:378) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:85) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.chat(ServerGamePacketListenerImpl.java:2493) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.broadcastChatMessage(ServerGamePacketListenerImpl.java:2609) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChat$13(ServerGamePacketListenerImpl.java:2257) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.util.FutureChain.lambda$append$1(FutureChain.java:25) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: javax.script.ScriptException: <eval>:1:12 Expected : but found }
!{pack_check}
            ^ in <eval> at line number 1 at column number 12
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:530) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:517) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[ChatControl-11.0.3-BETA.jar:?]
	at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:272) ~[ChatControl-11.0.3-BETA.jar:?]
	... 28 more
Caused by: org.openjdk.nashorn.internal.runtime.ParserException: <eval>:1:12 Expected : but found }
!{pack_check}
            ^
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:293) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:278) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.expectDontAdvance(AbstractParser.java:349) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.expect(AbstractParser.java:336) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.propertyAssignment(Parser.java:3198) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.objectLiteral(Parser.java:2977) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.primaryExpression(Parser.java:2777) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.memberExpression(Parser.java:3598) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.leftHandSideExpression(Parser.java:3382) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.unaryExpression(Parser.java:4397) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.unaryExpression(Parser.java:4377) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.expression(Parser.java:4568) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.conditionalExpression(Parser.java:4720) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.assignmentExpression(Parser.java:4659) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.expression(Parser.java:4537) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.expressionStatement(Parser.java:1840) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.statement(Parser.java:1146) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.sourceElements(Parser.java:900) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.program(Parser.java:835) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.parse(Parser.java:322) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.parse(Parser.java:282) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.Context.compile(Context.java:1484) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.Context.compileScript(Context.java:1451) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.Context.compileScript(Context.java:761) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:528) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:517) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[ChatControl-11.0.3-BETA.jar:?]
	at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:272) ~[ChatControl-11.0.3-BETA.jar:?]
	... 28 more
[17:32:16] [Async Chat Thread - #6/INFO]: [Not Secure] <Aptym4life1> ?
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: java.lang.NoSuchMethodError: 'void io.sentry.SentryOptions.setEnableUncaughtExceptionHandler(boolean)'
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at ChatControl-11.0.3-BETA.jar//org.mineacademy.chatcontrol.lib.debug.Debugger.lambda$saveError$1(Debugger.java:151)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at io.sentry.Sentry.init(Sentry.java:139)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at io.sentry.Sentry.init(Sentry.java:126)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at ChatControl-11.0.3-BETA.jar//org.mineacademy.chatcontrol.lib.debug.Debugger.lambda$saveError$2(Debugger.java:148)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at ChatControl-11.0.3-BETA.jar//org.mineacademy.chatcontrol.lib.CommonCore.lambda$wrapRunnableInExceptionCatcher$6(CommonCore.java:1774)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[17:32:16] [Craft Scheduler Thread - 997 - ChatControl/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:1583)
[17:32:16] [Async Chat Thread - #10/INFO]: [Not Secure] [standard] x_MegaRod_x: bruh
[17:32:17] [Async Chat Thread - #6/INFO]: [Not Secure] [standard] Aptym4life1: a

also there's Not Secure prefix, is it ok? In console

[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl] -------------------------------------------------------------------------------------------
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]  Failed parsing view condition for component!
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]  
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]  The view condition must be a JavaScript code that returns a boolean!
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]  Component: {
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]   "Condition": "{pack_check}",
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]   "Component": "<click:suggest_command:'/msg2 Aptym4life1 '><hover:show_text:'Aptym4life1 ❤25<br>Rank: <br>Level: [8]<br>--*---------------*--<br><br> ▎ Player Statistics<br> ▎ Money: $47<br> ▎ Power: 8/8<br> ▎ Exp: 9 Lvls<br> ▎ KDR: 5.00<br><br>Time Played: 104 h<br><br>(Click to message)'>"
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl] }
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]  Line: {pack_check}
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl]  Error: Report: Error parsing JavaScript! Invalid or unparsed variable! Line: 1. Error: ReferenceError: "pack_check" is not defined in <eval> at line number 1
[17:21:21] [Async Chat Thread - #9/INFO]: [ChatControl] -------------------------------------------------------------------------------------------
[17:21:21] [Async Chat Thread - #9/ERROR]: Could not pass event AsyncPlayerChatEvent to ChatControl v11.0.3-BETA
org.mineacademy.chatcontrol.lib.exception.FoScriptException: Report: Error parsing JavaScript! Invalid or unparsed variable! Line: 1. Error: ReferenceError: "pack_check" is not defined in <eval> at line number 1
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:330) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:216) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:156) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.SimpleComponent$ConditionalComponent.build(SimpleComponent.java:1155) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.SimpleComponent$ConditionalComponent.access$100(SimpleComponent.java:1087) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.SimpleComponent.toAdventure(SimpleComponent.java:781) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.SimpleComponent.toPlain(SimpleComponent.java:706) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:676) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:542) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.ChatHandler.handle0(ChatHandler.java:225) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.ChatHandler.handle(ChatHandler.java:49) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.LegacyChatListener.execute(LegacyChatListener.java:37) ~[ChatControl-11.0.3-BETA.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-2329-803bf62]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:378) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:85) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.chat(ServerGamePacketListenerImpl.java:2493) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.broadcastChatMessage(ServerGamePacketListenerImpl.java:2609) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChat$13(ServerGamePacketListenerImpl.java:2257) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.util.FutureChain.lambda$append$1(FutureChain.java:25) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: javax.script.ScriptException: ReferenceError: "pack_check" is not defined in <eval> at line number 1
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:447) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[ChatControl-11.0.3-BETA.jar:?]
	at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:272) ~[ChatControl-11.0.3-BETA.jar:?]
	... 27 more
Caused by: org.openjdk.nashorn.internal.runtime.ECMAException: ReferenceError: "pack_check" is not defined
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:318) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:290) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1614) ~[ChatControl-11.0.3-BETA.jar:?]
	at org.openjdk.nashorn.internal.scripts.Script$118$\^eval\_.:program(<eval>:1) ~[?:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[ChatControl-11.0.3-BETA.jar:?]
	at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:272) ~[ChatControl-11.0.3-BETA.jar:?]
	... 27 more
[17:21:21] [Async Chat Thread - #9/INFO]: [Not Secure] <Aptym4life1> we forgot 1 thing
[17:21:21] [Async Chat Thread - #6/INFO]: [Not Secure] [standard] GojoTheGoat: bruh
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: java.lang.NoSuchMethodError: 'void io.sentry.SentryOptions.setEnableUncaughtExceptionHandler(boolean)'
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at ChatControl-11.0.3-BETA.jar//org.mineacademy.chatcontrol.lib.debug.Debugger.lambda$saveError$1(Debugger.java:151)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at io.sentry.Sentry.init(Sentry.java:139)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at io.sentry.Sentry.init(Sentry.java:126)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at ChatControl-11.0.3-BETA.jar//org.mineacademy.chatcontrol.lib.debug.Debugger.lambda$saveError$2(Debugger.java:148)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at ChatControl-11.0.3-BETA.jar//org.mineacademy.chatcontrol.lib.CommonCore.lambda$wrapRunnableInExceptionCatcher$6(CommonCore.java:1774)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[17:21:21] [Craft Scheduler Thread - 817 - ChatControl/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:1583)
@bobhenl bobhenl changed the title 1.21.1: Failed parsing view condition for component! 1.21.1: Failed parsing view condition for component! -> Issue with boolean return? Dec 21, 2024
@bobhenl
Copy link
Author

bobhenl commented Dec 23, 2024

Another error:

Type: FORMAT
Key: "is_player"
Value: |-
    checkPlayer();
    
    function checkPlayer() {
        var val = "{luckperms_inherits_group_player}";
        if (val == "yes") {
            return true;
        } else {
            return false;
        }
    }
  
Sender_Condition: ""
Sender_Permission: ""
16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl] -------------------------------------------------------------------------------------------
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Error parsing Sender_Condition in format!
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Format: chat.yml
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Option: real
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Line: !{is_player}
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Sender: darifo
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Variables: [channel, message_uuid, message_is_denied_silently, message, sender]
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Error: Report: Error parsing JavaScript! Line: 1. Error: <eval>:1:11 Expected : but found }
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl] !{is_player}
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]            ^ in <eval> at line number 1 at column number 11
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  Check that Sender_Conditon is a JavaScript
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl]  code returning a valid Boolean!
[16:35:24] [Async Chat Thread - #164/INFO]: [ChatControl] -------------------------------------------------------------------------------------------
[16:35:24] [Async Chat Thread - #164/ERROR]: Could not pass event AsyncChatEvent to ChatControl v11.0.3-BETA
org.mineacademy.chatcontrol.lib.exception.FoScriptException: Report: Error parsing JavaScript! Line: 1. Error: <eval>:1:11 Expected : but found }
!{is_player}
           ^ in <eval> at line number 1 at column number 11
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:330) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:216) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:156) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Format$Part.build(Format.java:343) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Format.build(Format.java:153) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:627) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:542) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.ChatHandler.handle0(ChatHandler.java:225) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.ChatHandler.handle(ChatHandler.java:49) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.listener.chat.AdventureChatListener.execute(AdventureChatListener.java:61) ~[ChatControl-11.0.3-BETA.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-2329-803bf62]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:378) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at io.papermc.paper.adventure.ChatProcessor.processModern(ChatProcessor.java:151) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:106) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.chat(ServerGamePacketListenerImpl.java:2493) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.broadcastChatMessage(ServerGamePacketListenerImpl.java:2609) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChat$13(ServerGamePacketListenerImpl.java:2257) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at net.minecraft.util.FutureChain.lambda$append$1(FutureChain.java:25) ~[purpur-1.21.1.jar:1.21.1-2329-803bf62]
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: javax.script.ScriptException: <eval>:1:11 Expected : but found }
!{is_player}
           ^ in <eval> at line number 1 at column number 11
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:530) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:517) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[ChatControl-11.0.3-BETA.jar:?]
	at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:272) ~[ChatControl-11.0.3-BETA.jar:?]
	... 26 more
Caused by: org.openjdk.nashorn.internal.runtime.ParserException: <eval>:1:11 Expected : but found }
!{is_player}
           ^
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:293) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:278) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.expectDontAdvance(AbstractParser.java:349) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.AbstractParser.expect(AbstractParser.java:336) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.propertyAssignment(Parser.java:3198) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.objectLiteral(Parser.java:2977) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.primaryExpression(Parser.java:2777) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.memberExpression(Parser.java:3598) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.leftHandSideExpression(Parser.java:3382) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.unaryExpression(Parser.java:4397) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.unaryExpression(Parser.java:4377) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.expression(Parser.java:4568) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.conditionalExpression(Parser.java:4720) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.assignmentExpression(Parser.java:4659) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.expression(Parser.java:4537) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.expressionStatement(Parser.java:1840) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.statement(Parser.java:1146) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.sourceElements(Parser.java:900) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.program(Parser.java:835) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.parse(Parser.java:322) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.parser.Parser.parse(Parser.java:282) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.Context.compile(Context.java:1484) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.Context.compileScript(Context.java:1451) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.internal.runtime.Context.compileScript(Context.java:761) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:528) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:517) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[ChatControl-11.0.3-BETA.jar:?]
	at ChatControl-11.0.3-BETA.jar/org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[ChatControl-11.0.3-BETA.jar:?]
	at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
	at ChatControl-11.0.3-BETA.jar/org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:272) ~[ChatControl-11.0.3-BETA.jar:?]
	... 26 more

@kangarko
Copy link
Owner

Hey there!

I can't reproduce the JS error. Can you please ZIP me your /chc debug?

@bobhenl
Copy link
Author

bobhenl commented Dec 23, 2024

It happens only rarely which is weird, like it's working for almost whole day BUT sometimes it throws this error.

Zip:
@kangarko
debug.zip

@bobhenl
Copy link
Author

bobhenl commented Dec 23, 2024

2024-12-22-2.log
Btw here's the log for check @kangarko you can see bunch of these errors there

@kangarko
Copy link
Owner

Got it, I will have more time to sit with this after holidays, thanks for your understanding.

@bobhenl
Copy link
Author

bobhenl commented Dec 24, 2024

Thanks, it's happening quite often and once it broke the whole chat format, so I'll prob wait for the fix until trying to update again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants