ScriptCraft

ScriptCraft

14.6k Downloads

Console only responds with "/js Javascript code"

Rhodes-E-O opened this issue ยท 2 comments

commented

This is my first time using javascript so explain to me like I'm five, please.
When I use the console I tested it out by using the command /js 2+2 it then responded with "/js Javascript code" so I tried /js (2+2) and /js (2+2); thinking the syntax was incorrect, I still got the same response. After that was unsuccessful I spent around 3 hours trying by installing different versions of Spigot, Java, and ScriptCraft but to no avail. If anybody knows what's going on I'll accept any help.
2021-09-15_21-03-46

commented

It has been a while since I used ScriptCraft, but the first thing to do is to validate the install. Open your MineCraft server installation folder and then open the 'Plugins' folder. You should see the ScriptCraft.jar file in this folder. Now go back up one level to the main server folder and you should see a folder named 'scriptcraft'. If you open this folder, it should have several subfolders and files.

The main step here is the ScriptCraft.jar file being in the plugins folder. Once in place, starting the server will run the file and it will create the other folder. If the ScriptCraft.jar is in the plugins folder, but the 'scriptcraft' folder doesn't exist it is generally one of two issues.

  1. The file was put in the folder while the server was running. Close the server and start it back up and it should install the files.

  2. There were errors when the server started. If this is the case, post the errors here. There should be a 'log' folder with information in it. Example - I have a server with a 'logs' folder and inside that folder is a file named 'latest.log'. It contains information for the last start.

commented

The plugin is not working with Java versions 16 and 17, check out this workaround by ediloren: #458