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
| Command |
Arguments |
Description |
| 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 book |
|
Concatenates the lines in an unsigned book held in the player's hand, then executes it. Linebreaks are disregarded entirely. |
Variables exposed
| Variable name |
Shorter name |
Description |
| bukkitServer |
b |
Bukkit.getServer() |
| sender |
|
CommandSender instance |
| player |
p |
Player instance. Null if run as server |
Permissions
| Node |
Default |
Description |
| rhino.command |
Op |
Permission 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).
Похожие моды
Add a comment