Compatibility
Minecraft: Java Edition
1.21.10
1.21.4–1.21.8
1.20–1.20.4
Platforms
Details
Licensed MIT
Published 2 years ago
Updated 3 weeks ago
Changelog
LuaLink V2
LuaLink V2 has been completely rewritten from scratch. It now makes use of LuaJava with LuaJIT (previously LuaJ). Previous scripts made with V1 will need some changes. Below is a list of some of the documented breaking changes
Breaking Changes
Function's renamed
import->java.importscript.onLoad->script:onLoadscript.onUnload->script:onUnloadscript.hook->script:registerListenerscript.registerSimpleCommand->script:registerCommandscript.getServer- >server
Functions removed:
utils.instanceOf- Use Java's native Class.isInstance() method instead
-- Old way (v1) if not utils.instanceOf(causer, "org.bukkit.entity.Player") then return end -- New way (v2) local Player = java.import("org.bukkit.entity.Player") -- This would usually go at the top of your script. if not Player.class:isInstance(causer) then return end
- Use Java's native Class.isInstance() method instead
Please see the docs for more info on creating scripts
Files
Metadata
Release channel
ReleaseVersion number
1.21.4-1Loaders
Game versions
1.21.4Downloads
19Publication date
April 13, 2025 at 4:39 AMPublisher
Saturn
Member


