promotional bannermobile promotional banner

Lukkit - Lua for Bukkit

A plugin to expose the Bukkit API to lua.
Back to Files

Lukkit v1.0-alpha5

File nameLukkit-1.0-alpha5.jar
Uploader
UnwrittenFunUnwrittenFun
Uploaded
Apr 7, 2014
Downloads
328
Size
789.7 KB
File ID
783408
Type
A
Alpha
Supported game versions
  • CB 1.7.2-R0.3

What's new

  • Add ability to read and write files to plugin folder
local fileContents = plugin.readFile(filename)
plugin.writeFile(filename, content)
  • Add interface for config files
-- 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()

This mod has no additional files