Closed Teslicek closed 7 months ago
Prosim vypis mi error z konzoli, tam je viac info. Robi to nejaka Sender_Condition v nejakom formate.
[16:14:45] [Async Chat Thread - #5/ERROR]: ChatControlRed 10.23.3 encountered a ScriptException! Please check your error.log and report this issue with the information in that file. Running Pufferfish 1.20.2-R0.1-SNAPSHOT and Java 17.0.9
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Error parsing Sender_Condition in format!
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Format: chat.yml
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Option: NORMAL_NAME
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Line: player.hasPermission("group.gold") && !player.hasPermission("group.hiderank")
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Sender: CraftPlayer{name=Onlce}
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Error: Report: Unable to parse JavaScript code on line '1' for CraftPlayer{name=Onlce}. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed]
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Check that Sender_Conditon is a JavaScript
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] code returning a valid Boolean!
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:14:45] [Async Chat Thread - #5/INFO]: Report: Unable to parse JavaScript code on line '1' for CraftPlayer{name=Onlce}. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[16:14:45] [Async Chat Thread - #5/INFO]: <eval>:1 TypeError: Cannot read property "hasPermission" from undefined
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:198)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:125)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
[16:14:45] [Async Chat Thread - #5/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
[16:14:45] [Async Chat Thread - #5/INFO]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
[16:14:45] [Async Chat Thread - #5/INFO]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[16:14:45] [Async Chat Thread - #5/INFO]: at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[16:14:45] [Async Chat Thread - #5/INFO]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[16:14:45] [Async Chat Thread - #5/INFO]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
[16:14:45] [Async Chat Thread - #5/INFO]: at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
[16:14:45] [Async Chat Thread - #5/INFO]: at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
[16:14:45] [Async Chat Thread - #5/INFO]: at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
[16:14:45] [Async Chat Thread - #5/INFO]: at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] Unhandled exception listening to AsyncPlayerChatEvent
[16:14:45] [Async Chat Thread - #5/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:14:45] [Async Chat Thread - #5/INFO]: <Onlce> Ok bro stop flexing
[16:19:25] [Async Chat Thread - #3/ERROR]: ChatControlRed 10.23.3 encountered a ScriptException! Please check your error.log and report this issue with the information in that file. Running Pufferfish 1.20.2-R0.1-SNAPSHOT and Java 17.0.9
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Error parsing Sender_Condition in format!
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Format: chat.yml
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Option: BADGE
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Line: player.hasPermission("group.obsidian") && !player.hasPermission("group.hiderank")
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Sender: CraftPlayer{name=EvieBeevy}
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Error: Report: Unable to parse JavaScript code on line '1' for CraftPlayer{name=EvieBeevy}. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed]
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Check that Sender_Conditon is a JavaScript
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] code returning a valid Boolean!
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:19:25] [Async Chat Thread - #3/INFO]: Report: Unable to parse JavaScript code on line '1' for CraftPlayer{name=EvieBeevy}. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[16:19:25] [Async Chat Thread - #3/INFO]: <eval>:1 TypeError: Cannot read property "hasPermission" from undefined
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:198)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:125)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
[16:19:25] [Async Chat Thread - #3/INFO]: at ChatControl-Red-10.23.3.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
[16:19:25] [Async Chat Thread - #3/INFO]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
[16:19:25] [Async Chat Thread - #3/INFO]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[16:19:25] [Async Chat Thread - #3/INFO]: at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[16:19:25] [Async Chat Thread - #3/INFO]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[16:19:25] [Async Chat Thread - #3/INFO]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
[16:19:25] [Async Chat Thread - #3/INFO]: at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
[16:19:25] [Async Chat Thread - #3/INFO]: at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
[16:19:25] [Async Chat Thread - #3/INFO]: at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
[16:19:25] [Async Chat Thread - #3/INFO]: at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] Unhandled exception listening to AsyncPlayerChatEvent
[16:19:25] [Async Chat Thread - #3/INFO]: [ChatControlRed] !-----------------------------------------------------!
[16:19:25] [Async Chat Thread - #3/INFO]: <EvieBeevy> time to do it again
Prikladám formát z chat.yml
Parts:
PREFIX:
Message: '{player_prefix}{tab_replace_lifesteal_newbie}'
Suggest_Command: '/msg {player} '
BOOSTER:
Message: '&d ❤'
Sender_Condition: player.hasPermission("discord.boosting") && (!player.hasPermission("group.obsidian") || player.hasPermission("group.hiderank"))
Suggest_Command: '/msg {player} '
BADGE:
Message: '&r %badge_badge%'
Sender_Condition: player.hasPermission("group.obsidian") && !player.hasPermission("group.hiderank")
Suggest_Command: '/msg {player} '
NORMAL_NAME:
Message: '{luckperms_meta_color} {player_nick}'
Sender_Condition: player.hasPermission("group.gold") && !player.hasPermission("group.hiderank")
Suggest_Command: '/msg {player} '
HIDERANK_NAME:
Message: '{luckperms_meta_color} {player}'
Sender_Condition: player.hasPermission("group.hiderank") || !player.hasPermission("group.gold")
Suggest_Command: '/msg {player} '
CHAT_ARROW:
Message: '{luckperms_meta_color} &l›&f '
Suggest_Command: '/msg {player} '
CHATCOLOR_MESSAGE:
Message: '{chat_color}{message}'
Sender_Condition: player.hasPermission("group.emerald") && !player.hasPermission("group.hiderank")
DEFAULT_MESSAGE:
Message: '{message}'
Sender_Condition: player.hasPermission("group.hiderank") || !player.hasPermission("group.emerald")
EvieBeevy nie je z discordu alebo z bungee, vsak? Je prihlaseny na tom istom serveri?
Posielam dev build s upravenou debug hlaskou a bez cache, prosim otestuj ci sa to furt bude diat:
EvieBeevy nie je z discordu alebo z bungee, vsak? Je prihlaseny na tom istom serveri?
Nie, je to obyčajný hráč na serveri. Nepoužívam žiaden ChatControl Velocity ani Bungee a takisto ani DiscordSRV integration.
Ubehlo asi 17 hodín od reštartu, zatiaľ žiaden error, počkám ešte ďalších 24 hodín, pre istotu.
I see a little bug there. The name is completely missing. Hasn't happened before, ever. No info in console or anywhere else.
https://paste.gg/p/anonymous/5c756fd0ca6c43879d22ec8614283d4f
Ešte error z console: https://paste.gg/p/anonymous/74d7c746f0d840ad997b1ed0f588720c
Viac errors s dev buildom.
Ahoj, to ma mrzi. Posielam novy dev build.
V nom by uz nemalo dojst k chybe, avsak ked plugin nedokaze najst sendera pre ktoreho je skript zapnuty tak to vypise: "Not running JavaScript it contains 'player' but player was not provided. Script". Pozri potom konzolu ci tam budu tie hlasky a ako casto a hlavne, ci tie hlasky su pre hracov na rovnakom serveri.
[22:38:01] [Async Chat Thread - #18/ERROR]: ChatControlRed 10.23.3 encountered a ScriptException! Please check your error.log and report this issue with the information in that file. Running Pufferfish 1.20.2-R0.1-SNAPSHOT and Java 17.0.9
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] !-----------------------------------------------------!
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Error parsing Sender_Condition in format!
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Format: chat.yml
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Option: DEFAULT_MESSAGE
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Line: player.hasPermission("group.hiderank") || !player.hasPermission("group.emerald")
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Sender: Fiji909
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Variables: {channel=standard, message=PepPisss, message_uuid=ad515ec7-287a-4eb7-ac8d-a9dca11a21fb}
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Error: Report: Unable to parse JavaScript code on line '1' for sender 'Fiji909'. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed]
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Check that Sender_Conditon is a JavaScript
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] code returning a valid Boolean!
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] !-----------------------------------------------------!
[22:38:01] [Async Chat Thread - #18/INFO]: Report: Unable to parse JavaScript code on line '1' for sender 'Fiji909'. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[22:38:01] [Async Chat Thread - #18/INFO]: <eval>:1 TypeError: Cannot read property "hasPermission" from undefined
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:202)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:123)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
[22:38:01] [Async Chat Thread - #18/INFO]: at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
[22:38:01] [Async Chat Thread - #18/INFO]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
[22:38:01] [Async Chat Thread - #18/INFO]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[22:38:01] [Async Chat Thread - #18/INFO]: at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[22:38:01] [Async Chat Thread - #18/INFO]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[22:38:01] [Async Chat Thread - #18/INFO]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
[22:38:01] [Async Chat Thread - #18/INFO]: at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
[22:38:01] [Async Chat Thread - #18/INFO]: at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
[22:38:01] [Async Chat Thread - #18/INFO]: at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
[22:38:01] [Async Chat Thread - #18/INFO]: at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] !-----------------------------------------------------!
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] Unhandled exception listening to AsyncPlayerChatEvent
[22:38:01] [Async Chat Thread - #18/INFO]: [ChatControlRed] !-----------------------------------------------------!
[22:38:01] [Async Chat Thread - #18/INFO]: <Fiji909> PepPissss
------------------------------------[ 02.01.2024 22:38:01 ]-----------------------------------
ChatControlRed 10.23.3 encountered a ScriptException
Running Pufferfish 1.20.2-R0.1-SNAPSHOT and Java 17.0.9
----------------------------------------------------------------------------------------------
More Information:
Unable to parse JavaScript code on line '1' for sender 'Fiji909'. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
ScriptException TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:447)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:202)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:123)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
ECMAException TypeError: Cannot read property "hasPermission" from undefined
at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:212)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:184)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:171)
at org.openjdk.nashorn.internal.runtime.Undefined.get(Undefined.java:161)
at org.openjdk.nashorn.internal.scripts.Script$5$\^eval\_.:program(<eval>:1)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:202)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:123)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
at ChatControl-Red-10.23.3-fix2.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
----------------------------------------------------------------------------------------------
Ospravedlnujem sa za neskoru odpoved. Uprimne, nechapem preco sa to stale deje lebo tam mame kod ktory by mal zabranit javascriptu v exekucii. Popresuval som to a pridal debug hlasku. Prosim nastav Debug kluc v settings.yml na [javascript]
. Ked sa to udeje malo by to do konzoli vypisat to co je v predoslom odkaze.
Dakujem za trpezlivost.
------------------------------------[ 09.01.2024 23:17:06 ]-----------------------------------
ChatControlRed 10.23.3 encountered a ScriptException
Running Pufferfish 1.20.2-R0.1-SNAPSHOT and Java 17.0.9
----------------------------------------------------------------------------------------------
More Information:
Unable to parse JavaScript code on line '1' for sender '15BC'. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
ScriptException TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:447)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:205)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:124)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
ECMAException TypeError: Cannot read property "hasPermission" from undefined
at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:212)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:184)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:171)
at org.openjdk.nashorn.internal.runtime.Undefined.get(Undefined.java:161)
at org.openjdk.nashorn.internal.scripts.Script$2$\^eval\_.:program(<eval>:1)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:205)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:124)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
----------------------------------------------------------------------------------------------
[23:17:06] [Async Chat Thread - #9/INFO]: [javascript] Sender: 15BC with code: player.hasPermission("discord.boosting") && (!player.hasPermission("group.obsidian") || player.hasPermission("group.hiderank"))
[23:17:06] [Async Chat Thread - #9/INFO]: [javascript] Sender: 15BC with code: player.hasPermission("group.obsidian") && !player.hasPermission("group.hiderank")
[23:17:06] [Async Chat Thread - #9/INFO]: [javascript] Sender: 15BC with code: player.hasPermission("group.gold") && !player.hasPermission("group.hiderank")
[23:17:06] [Async Chat Thread - #8/INFO]: [javascript] Sender: Krennerite with code: player.hasPermission("discord.boosting") && (!player.hasPermission("group.obsidian") || player.hasPermission("group.hiderank"))
[23:17:06] [Async Chat Thread - #8/INFO]: [javascript] Sender: Krennerite with code: player.hasPermission("group.obsidian") && !player.hasPermission("group.hiderank")
[23:17:06] [Async Chat Thread - #8/INFO]: [javascript] Sender: Krennerite with code: player.hasPermission("group.gold") && !player.hasPermission("group.hiderank")
[23:17:06] [Async Chat Thread - #8/INFO]: [javascript] Sender: Krennerite with code: player.hasPermission("group.hiderank") || !player.hasPermission("group.gold")
[23:17:06] [Async Chat Thread - #8/INFO]: [javascript] Sender: Krennerite with code: player.hasPermission("group.emerald") && !player.hasPermission("group.hiderank")
[23:17:06] [Async Chat Thread - #8/INFO]: [javascript] Sender: Krennerite with code: player.hasPermission("group.hiderank") || !player.hasPermission("group.emerald")
[23:17:06] [Async Chat Thread - #9/ERROR]: ChatControlRed 10.23.3 encountered a ScriptException! Please check your error.log and report this issue with the information in that file. Running Pufferfish 1.20.2-R0.1-SNAPSHOT and Java 17.0.9
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] !-----------------------------------------------------!
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Error parsing Sender_Condition in format!
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Format: chat.yml
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Option: NORMAL_NAME
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Line: player.hasPermission("group.gold") && !player.hasPermission("group.hiderank")
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Sender: 15BC
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Variables: {channel=standard, message=Krennerite do u have another 1, message_uuid=ecf10336-9e28-4c03-bf23-cd93e95bca77}
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Error: Report: Unable to parse JavaScript code on line '1' for sender '15BC'. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed]
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Check that Sender_Conditon is a JavaScript
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] code returning a valid Boolean!
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] !-----------------------------------------------------!
[23:17:06] [Async Chat Thread - #9/INFO]: Report: Unable to parse JavaScript code on line '1' for sender '15BC'. Error: javax.script.ScriptException: TypeError: Cannot read property "hasPermission" from undefined in <eval> at line number 1
[23:17:06] [Async Chat Thread - #9/INFO]: <eval>:1 TypeError: Cannot read property "hasPermission" from undefined
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:205)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.model.JavaScriptExecutor.run(JavaScriptExecutor.java:124)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Format.buildOption(Format.java:248)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Format.build(Format.java:211)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:624)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:527)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.model.Channel.sendMessage(Channel.java:512)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:180)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.listener.ChatListener.execute(ChatListener.java:34)
[23:17:06] [Async Chat Thread - #9/INFO]: at ChatControl-Red-10.23.3-fix3.jar//org.mineacademy.chatcontrol.lib.event.SimpleListener.execute(SimpleListener.java:89)
[23:17:06] [Async Chat Thread - #9/INFO]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
[23:17:06] [Async Chat Thread - #9/INFO]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[23:17:06] [Async Chat Thread - #9/INFO]: at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[23:17:06] [Async Chat Thread - #9/INFO]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[23:17:06] [Async Chat Thread - #9/INFO]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617)
[23:17:06] [Async Chat Thread - #9/INFO]: at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:416)
[23:17:06] [Async Chat Thread - #9/INFO]: at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:102)
[23:17:06] [Async Chat Thread - #9/INFO]: at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
[23:17:06] [Async Chat Thread - #9/INFO]: at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] !-----------------------------------------------------!
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] Unhandled exception listening to AsyncPlayerChatEvent
[23:17:06] [Async Chat Thread - #9/INFO]: [ChatControlRed] !-----------------------------------------------------!
[23:17:06] [Async Chat Thread - #9/INFO]: [Not Secure] <15BC> Krennerite do u have another 1
[23:17:06] [Async Chat Thread - #8/INFO]: OBSIDIAN Krennerite ? like 1 and a half
Malo by to byt odstranene v dalsej verzii.
Ak sa to stale udeje, budem musiet od teba poziadat, aby si upravil tie podmienky nasledovne:
Povodna verzia:
player.hasPermission("group.hiderank") || !player.hasPermission("group.emerald")
Upravena:
player && (player.hasPermission("group.hiderank") || !player.hasPermission("group.emerald"))
Proste tam pridaj player && a daj tu staru podmienku do ().
Pripadne daj player != null ked len player nebude fungovat.
"/version ChatControlRed" - plugin version
10.23.3
Are you using MySQL?
Yes
Are you using BungeeCord?
No
Error log (if applicable)
https://paste.gg/p/anonymous/654803afa1a74a44abfe58e4fd2f5df6
"/chc debug" output (strongly recommended)
No response
Information about the issue/bug
.