Contrast_Picker
Arcidayne 9 years ago
parent 0c079a9a20
commit b1b0b1d6b8

@ -48,14 +48,16 @@ function UpdatePlugin(pid, pfile, pversion, raw)
ColourNote("white", "blue", "You currently have the latest version!") ColourNote("white", "blue", "You currently have the latest version!")
elseif tonumber(raw_version) > tonumber(pversion) then elseif tonumber(raw_version) > tonumber(pversion) then
ColourNote("white", "blue", "Updating from " .. pversion .. " to " .. raw_version .. "!") ColourNote("white", "blue", "Updating from " .. pversion .. " to " .. raw_version .. "!")
--UnloadPlugin(pid) UnloadPlugin(pid)
local file = io.open(pfile, "w") local file = io.open(pfile, "w")
file:write(page) file:write(page)
file:close() file:close()
--DoAfterSpecial(3, "LoadPlugin(" .. pid .. ")", 12) DoAfterSpecial(3, "LoadPlugin(" .. pid .. ")", 12)
end end
raw_version = nil raw_version = nil
CallPlugin('e6cd5104e883a1dd9c4362e2', "remove_update", GetPluginID())
--UnloadPlugin(GetPluginID()) --UnloadPlugin(GetPluginID())
--os.remove(GetPluginInfo(GetPluginID(), 6)) --os.remove(GetPluginInfo(GetPluginID(), 6))
end end

Loading…
Cancel
Save