MultiScripts
MultiScripts provides a simple API to combine Java with multiple programming languages. In other words, you can easily create a plugin in JavaScript, Python or Lua and share it with the community.
You can use the entire Sponge API with any of the languages supported. It will adapt itself to its environment and you will have no problem to bind your code to any other plugin.
Wiki
The wiki contains more informations about how this plugin works and how to can create a plugin. Also, there is a lot of examples to show how to do some functionalities and there is an example in each supported language.
Example
This is how you listen an event with MultiScripts. You can find more examples here.
function onInit() {
Sponge.eventManager.registerListener(plugin, MultiScripts.getClass("org.spongepowered.api.event.world.SaveWorldEvent$Post"), MultiScripts.castFunction("org.spongepowered.api.event.EventListener", worldSaveEventListener));
}
function worldSaveEventListener(event) {
plugin.logger.info("World " + event.targetWorld.name + " saved!!");
}
It is licensed under the MIT license.
Notes
- This plugin is still in Beta, it may contains some bugs.
- Some functionalities of the languages supported may not works. If you found any, create an issue please.