Lukkit v1.0-alpha5

Details

  • Filename
    Lukkit-1.0-alpha5.jar
  • Uploaded by
  • Uploaded
    Apr 7, 2014
  • Size
    789.73 KB
  • Downloads
    203
  • MD5
    0bdb9054981dd523019c2c6d07f877d7

Supported Bukkit Versions

  • CB 1.7.2-R0.3

Changelog

  • 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()