Multi-lingual Plugin Programming
-
Mlpp is a plugin made for developing plugins in languages other than Java (mainly languages that are interpreted and not compiled).
The API in Javascript is the same in Java.
Every .js file in the Javascript folder is ran when the plugin is enabled.
Because the API is almost the same in Java,
Code (Text):Bukkit.broadcastMessage("asdf");
Events work a little differently than in Java.
To register an event in Mlpp, use:
Code (Text):Events.EVENTTHINGHERE(function(event) {
// Do your things here.
});
For an example:
- onBlockPlace
- onBlockBreak
- onEnchantItem
- BlockPlaceEvent
- BlockBreakEvent
- PlayerInteractEvent
- BlockFadeEvent
- EnchantItemEvent
- CreatureSpawnEvent
- ProjectileHitEvent
- EntityDeathEvent
- Loading...
- Loading...
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM