promotional bannermobile promotional banner

Lukkit - Lua for Bukkit

A plugin to expose the Bukkit API to lua.

File Details

Lukkit v1.0-alpha5

  • A
  • Apr 7, 2014
  • 789.73 KB
  • 304
  • CB 1.7.2-R0.3

File Name

Lukkit-1.0-alpha5.jar

Supported Versions

  • CB 1.7.2-R0.3
  • 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()