Skip to content

Ap3teus/craftjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CraftJS

NOTE: Under heavy development

Spigot Plugin that allows programming custom functionality for your server using Javascript. Inspired heavily by Scriptcraft but trying to address some of it's issues.

Core Javascript code is available here

Getting Started

Download the plugin jar from releases or build the code directly from source.

Building from source

  1. Make sure you have maven installed
  2. Download and install Graal Java runtime and make sure it's configured as your default Java (executing java --version should say OpenJDK Runtime Environment GraalVM )
  3. Run mvn install
  4. Copy the built jar from target to your server's plugins-folder

Differences to Scriptcraft

CraftJS and Scriptcraft are both essentially just a Javascript engine wrapped into a Spigot plugin. Scriptcraft uses now deprecated Nashorn -engine, while CraftJS uses Graal. This allows the executing code to use more recent (ES6+) Javascript features without using transpilers (like Babel), and should also allow for much better performance.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages