NhPlugin provides an easy way to write commands and event handlers that work with the Bukkit/Spigot API in JavaScript. The plugin includes Nashorn (A JavaScript Engine) that allows for JavaScript to work with Java objects and methods.
Features
Dynamically registered commands and event handlers
Ability to interact with both Spigot Events and Custom Events
Over-ride existing commands
EMCA script supported
Built-In command base handler and event handler for loading scripts
Can use fully custom permissions assigned in JS
Setup
Download the .jar and place it in the Spigot server's plugin folder
Restart the server and the plugin should be loaded with base config values.
Permissions
nh.reloadscripts
nh.cmd
Important Information
This plugin works on either Spigot or Bungeecord servers!
This plugin does allow for cross-server punishments and alerts, however ticket data is not synced between servers.
If you encounter any issues with the plugin please send me a message, or create an issue on the plugin's github page
# Nhplugin Config # This plugin was developed by BDX (GitHub: BDXGaming) (Spigot: BDX_) # This plugin serves as a bridge between the Spigot/Bukkit api and the Nashorn Scripting engine # This plugin has no intended features other than passing commands and events to the given js file
#The Javascript entrypoint file [DO NOT CHANGE UNLESS USING CUSTOM ENTRY SCRIPT] fileName: plugins\Nhplugin\main.js
# List of command names that are used by JS, add new names to support command-name tab completion commandNames: - jseval