What happened with `get()` and `put()` in executers?
miresru opened this issue ยท 4 comments
I have a project half year old and I have just updated TR plugin and all my old executers do not work :-(
What happened with get()
and put()
in executers?
I have simple code in TEST.js file:
function TEST(){
var a = get("test");
print(a)
return null;
}
But it gives me error in console: ReferenceError: "get" is not defined
How I can fix it?
Also where I can fine TR commands to use them in executers (js files)
your example works fine for me
I used the latest TriggerReactor version (2.1.8) on a Spigot 1.12 server.
I did notice one error though, the function signature of all executors and placeholders should be declared to take one argument:
function name(args)
however, this did not affect your code
can you give more details about your server installation?
I have:
- OSX 10.10.5
- Java version "1.8.0_71"
- Spigot-1.12.2-79a30d7-20190219-1130
- TriggerReactor-2.1.8
Absolutely new project. Only Spigot + TriggerReactor + TEST.js executor.
Run directly from console by: trg run #TEST
If run by player command (CommandTrigger) the same error but on screen.
>trg run #TEST
[21:57:17 INFO]: Could not execute this trigger.
[21:57:17 INFO]: >> Caused by:
[21:57:17 INFO]: Could not finish interpretation for [temp]!
[21:57:17 INFO]: >> Caused by:
[21:57:17 INFO]: Error at row[1], col[6]
[21:57:17 INFO]: >> Caused by:
[21:57:17 INFO]: #TEST encountered error.
[21:57:17 INFO]: >> Caused by:
[21:57:17 INFO]: <eval>:2 ReferenceError: "get" is not defined
[21:57:17 INFO]: >> Caused by:
[21:57:17 INFO]: ReferenceError: "get" is not defined
[21:57:17 INFO]: If you are administrator, see console for details.
One more thing...
It works on my old server on:
- Debian GNU/Linux 9
- with Java 1.8.0_171