sumneko/w3x2lni

命令行w2l没有执行插件

josStorer opened this issue · 1 comments

使用如下脚本,图形界面能够在w3x2lni的script目录创建文件,而通过命令行转换则不执行,并且没有在命令行帮助中看到相关选项

my_plugin.lua

local mt = {}

mt.info = {
    name = 'issue',
    version = 1.0,
    author = 'issue',
    description = 'issue'
}

function mt:on_full(w2l)
    file = io.open("test.txt","w")
    for id, obj in pairs(w2l.slk.unit) do
        file:write(obj.name.."\n")
        file:write(obj.art.."\n")
    end
    file:close()
end

return mt

已修复
5850b6b