ReferenceError: "broadcast" is not defined in <eval> at line number 1"
zicy opened this issue ยท 0 comments
Hi i have run into trouble setting up this plugin, i am just using the default "vote-script.txt" which the plugin creates on first startup.
The error i get are "Error running script: ReferenceError: "broadcast" is not defined in <eval> at line number 1"
The samme problem occurs when using "message" and "command"
I have tried different version, including bulding it myself.
Can anybody give a hint to what i am doing wrong here ?
I am using spigot 1.14.4
The error show in the console
[22:35:17] [Server thread/INFO]: [Votifier] Got a forwarded vote -> Vote (from:MCTools.org username:Zicy address:xx.xxx.xxx.xxx timeStamp:1571690116 localTimestamp:1571690117433)
[22:35:17] [Server thread/WARN]: [VotifierScripts] Error running script: ReferenceError: "broadcast" is not defined in <eval> at line number 1
[22:35:17] [Server thread/ERROR]: Could not pass event VotifierEvent to VotifierScripts v1.1-SNAPSHOT-b36
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at com.vexsoftware.votifier.NuVotifierBukkit.lambda$onForward$2(NuVotifierBukkit.java:390) ~[?:?]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81) [senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394) [senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1022) [senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:393) [senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:970) [senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:815) [senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_221]
Caused by: java.lang.NullPointerException
at com.dumptruckman.minecraft.votifierscripts.buscript.BukkitScriptExecutor.sendMessage(BukkitScriptExecutor.java:15) ~[?:?]
at com.dumptruckman.minecraft.votifierscripts.buscript.ScriptManager.runScript(ScriptManager.java:406) ~[?:?]
at com.dumptruckman.minecraft.votifierscripts.buscript.ScriptManager.executeScript(ScriptManager.java:324) ~[?:?]
at com.dumptruckman.minecraft.votifierscripts.buscript.Buscript.executeScript(Buscript.java:215) ~[?:?]
at com.dumptruckman.minecraft.votifierscripts.VotifierScripts.executeVoteScript(VotifierScripts.java:266) ~[?:?]
at com.dumptruckman.minecraft.votifierscripts.VotifierScripts.vote(VotifierScripts.java:55) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_221]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_221]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_221]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[senex-spigot-1.14.4.jar:git-Spigot-065a373-763e560]
... 11 more