Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

the javax.script Plugin Loader for Bukkit

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 pom.xml
README.md

jxpl - The j__ava__x.scripting __P__lugin __L__oader

jxpl is a plugin providing a plugin loader that loads whatever script engines work with javax.script, and are Invocable.

End-user Usage

Place scripts in the scripts/ directory in the root directory (where plugins/ is). Do not place scripts in plugins/.

Developer Usage

Examples are in the jxpl-scripts repository. It should contain everything you need to get started. jxpl comes with the latest version of Rhino shaded in the jar. Should you want to script using other languages (provided they work with ScriptEngineManager in javax.script), you will need to include the framework in your classpath yourself.

Some available languages

You will need to download the jar for the language you want to run a script in.

  • JavaScript
    • Mozilla Rhino 1.7R3, bundled with jxpl
  • Python 2.5 (Jython)
    • You'll need to download the installer, run it and create a standalone jar.
  • Ruby 1.9 (JRuby)
    • From the download page you can get the file "jruby-complete-1.6.5.jar".
  • Groovy
  • Lua

Installing script engines

Simply drop the JAR into plugins/jxpl/lib/ and restart your server.

Donations

If you wish to donate, you can buy me one of these:

  • A Namecheap domain
  • Xbox Live Gold Subscription
  • A VPS or Dedicated server

Heh.

Something went wrong with that request. Please try again.