kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
44 stars 22 forks source link

Error and Crash? #2575

Closed danieliustt closed 5 months ago

danieliustt commented 5 months ago

"/version ChatControlRed" - plugin version

10.42.0

Are you using MySQL?

Yes

Are you using BungeeCord?

No

Error log (if applicable)

https://paste.gg/p/anonymous/2233981aa53e4681acf3729c39e1cfd6

"/chc debug" output (strongly recommended)

[17:41:24] [Async Chat Thread - #88/ERROR]: ChatControlRed 10.24.2 encountered a ScriptException! Please check your error.log and report this issue with the information in that file. Running Pufferfish 1.20.4-R0.1-SNAPSHOT and Java 17.0.9 [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] !-----------------------------------------------------! [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] Error executing JavaScript in a variable! [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] Variable: ping.yml [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] Line: return player ? player.getHandle().ping : ""; [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] Sender: CraftPlayer{name=Kaeya01} [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] Replacements: {channel=Bendras, message=galiu turÄ—ti jei rk, message_uuid=66ded734-25f4-4e6f-8d65-5c199ddffaa0} [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] Error: Report: Found invalid or unparsed variable for sender 'Kaeya01' on line 15: ReferenceError: "player" is not defined in at line number 15

[17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] This is likely NOT our plugin bug, check Value key in ping.yml [17:41:24] [Async Chat Thread - #88/INFO]: [ChatControlRed] that it returns a valid JavaScript code before reporting!

Information about the issue/bug

Crash

kangarko commented 5 months ago

Hello, sorry for the delay, I will fix that tonight.