AndreSoYeah

checkVersion

Nov 18th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. shell.run("pastebin","get","k2Hn5ZQt","checking")
  2. shell.run("checking")
  3. shell.run("variables")
  4. local function deleteIt()
  5.   shell.run("delete","checking")
  6. end
  7. if CurrentVersion > version then
  8.   clear()
  9.   Logo()
  10.   print("A new version of Black OS is avaible")
  11.   deleteIt()
  12.   print("How to install it:")
  13.   print("replace computer")
  14.   print("go to http://bit.ly/XqukFn and scroll to the bottom.")
  15.   print("at the bottom of the screen click the pastebin link")
  16.   print("at the end of address bar at top of web browser you will see something like s3S3D7")
  17.   print("highlight it and press LCTRL+C")
  18.   print("on the new computer in minecraft type in pastebin get  but DO NOT press enter")
  19.   print("press LCtrl + V")
  20.   print("type in install and NOW press enter")
  21.   back()
  22. elseif CurrentVersion == version then
  23.   clear()
  24.   Logo()
  25.   print("Black OS is up to date")
  26.   deleteIt()
  27.   back()
  28. elseif CurrentVersion < version then
  29.   clear()
  30.   Logo()
  31.   deleteIt()
  32.   print("Please PM Walia6 and tell him he forgot to update")
  33.   back()
  34. else
  35.   clear()
  36.   Logo()
  37.   print("Something went wrong!")
  38.   if fs.exists("checking") then
  39.     deleteIt()
  40.     back()
  41.   end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment