Chapter 4. Choosing and Using a Text Editor

Up to now you’ve been executing JavaScript at the server console window using the js command. This is a perfectly good way to try JavaScript. It’s nice to have a command-line interpreter when trying things out and exploring a new language. However, once you want to start doing some real work with JavaScript, you’ll want to be able to save your work and run it, without issuing many js commands at the server console window each time your server starts.

ScriptCraft lets you load JavaScript files you’ve saved and either can run them automatically when the server starts up or can run your code on-demand. If you plan on saving your work, you’ll need to write your code using a text editor. Any text editor ...

Get A Beginner’s Guide to Writing Minecraft Plugins in JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.