Skip to content
the javax.script Plugin Loader for Bukkit
Java
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitignore
README.md
build.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. Note that Java comes with only Mozilla Rhino 1.6R2, and nothing else. 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.

Craftbukkit startup script

For usage with Jython and other engines in the form of JARs

Always include the scripts before craftbukkit in the classpath.

  • Linux
    • java -server -Xms2048M -Xmx3072M -cp myengine1.jar:myengine2.jar:craftbukkit.jar org.bukkit.craftbukkit.Main
  • Windows
    • java -server -Xms2048M -Xmx3072M -cp myengine1.jar;myengine2.jar;craftbukkit.jar org.bukkit.craftbukkit.Main

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.