Lukkit allows developers to create plugins for the Spigot API in an efficient and effective manner using the Lua scripting language. Detailed documentation makes getting started with Lukkit super simple.
Adds:
util.getBukkitRunnable(function)
Fixes:
number
to Java would produce an Integer
object and not a primitive.Changes:
It may be next to nothing but at least I've got motivation to do this :p
Changes:
Fixes:
runDelayed
causes server hang and timeout (fixes #29 )NoSuchFieldException
when reloading or shutting downThis is a smaller release while v3 is being worked on.
Added:
util.cast(userdata, className)
method for casting (temporary)Fixed:
require
now returns baselibs if a Lua file isn't found in the plugin's dataThis rewrite was first started by @jammehcow and has been developed slowly, but is now ready for release. I don't expect it to be perfect, so please post bugs in issues. Plugins that are written for Lukkit 1.0 will not work on 2.0, but a wiki has been created to explain every detail of creating a Lukkit plugin.
This release fixes logging of an update when one wasn't available. Apologies to all who were confused.
Major changes:
Minor changes:
Cheers to @hintss and @SwadicalRag for submitting some PRs on things I didn't originally pick up on. Cheers!
With this release brings the long awaited update to 1.10.2 (the latest version of Minecraft). Lukkit's development has been dead for a while with the previous version being released back in 2012, so I thought it was time to pick it back up from @UnwrittenFun and update it.
Major changes:
Minor changes:
For those who use it, if you have any suggestions, submit and issue and I'll tag it. The more the merrier.
EDIT: the jar is no longer 20MB. My mistake, apologies.
local fileContents = plugin.readFile(filename)
plugin.writeFile(filename, content)
-- Set the value if not already in the config
-- plugin.config.setDefault(path, value)
plugin.config.setDefault("test.bool", false)
plugin.config.setDefault("test.int", 45)
-- Set the value regardless of if it already exists
-- plugin.config.set(path, value)
plugin.config.set("test.float", 4.7)
plugin.config.set("test.string", "a string")
-- plugin.config.get(path, default)
plugin.config.get("test.bool", true)
-- Save the config to file
plugin.config.save()