API Reference
For objects such as players, blocks locations, etc... it will be almost exactly like java. So i don't realy want to rewrite from the bukkit javadoc since that would be pretty pointless i will just link you there: javadoc
Example for a player object that get passed in events such as onPlayerJoin:
getDisplayName lua equivalent is player:getDisplayName()
API Reference
server
server is a global object with methods for things such as hooking events.
Function | Arguments | Description |
---|---|---|
server.hook(string, string, function) | Name of the event you want to hook to, a unique name you give it, function that will execute | Attaches a hook to the server that will execute whenever that event occurs |
Comments