Advertisement
cyber_Ahn

Bounded Cabel Server installer

Dec 6th, 2016 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. -- save this code in Startup !!
  2. function download(url, file)
  3.   local content = http.get(url).readAll()
  4.   if not content then
  5.     error("Could not connect to website")
  6.   end
  7.   f = fs.open(file, "w")
  8.   f.write(content)
  9.   f.close()
  10. end
  11. local programName = "cable_server"
  12. local pasteIndex = "hwwptkxk"
  13. shell.run("rm"..programName)
  14. shell.run("delete "..programName)
  15. --shell.run("pastebin get "..pasteIndex.." "..programName)
  16. download("http://caworks-sl.de/data/download/mc/server/cableServer.lua", "cable_server")
  17. shell.run(programName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement