MLua adds support for lua scripting in minecraft.
Why should you use it?
* It's convenient
* It's fast
* It's reliable
Code example:
Code (Java):
hook.
insert
(
"PlayerJoinEvent", function
(event
)
local player
= event
:getPlayer
(
)
local nick
= player
:getName
(
)
fetch
(
"GET",
"https://yourdevserver.com/players?=" ..
nick, function
(body, response_code
)
print
(response_code ..
" => ", body
)
end
)
end
)
The rest of the information can be found on the project's github