Rhino

Rhino is the name of the Javascript interpreter bundled with the Oracle Java Runtime Environment. This is a plugin to allow you to use it.

Current features

  • Runs Javascript from command, book, or file
  • There are no other features

Commands

CommandArgumentsDescription
rhino script<filepath>Filepath can be absolute, otherwise is based in current directory of server instance.
rhino eval<javascript>Passes the given js to Rhino for execution
rhino bookConcatenates the lines in an unsigned book held in the player's hand, then executes it. Linebreaks are disregarded entirely.

Variables exposed

Variable nameShorter nameDescription
bukkitServerbBukkit.getServer()
senderCommandSender instance
playerpPlayer instance. Null if run as server

Permissions

NodeDefaultDescription
rhino.commandOpPermission to use Rhino. Don't give this to anyone you wouldn't trust with a shell on your server.

Source code and Licence

RhinoPlugin source code is available here under the terms of the GNU General Public Licence (Version 3).


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit