hubeb

login

Apr 20th, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. min3pass = "Pa55W0rd"
  4. write("Username: ")
  5. user = read()
  6. if user == "Min3" then
  7. write("Password: ")
  8. p1 = read("*")
  9. if p1 == min3pass then
  10. print("Welcome Min3CraftDud3!")
  11. redstone.setOutput("back", true)
  12. sleep(5)
  13. redstone.setOutput("back", false)
  14. os.reboot()
  15. else
  16. print("Password Incorrect!")
  17. sleep(2)
  18. os.shutdown()
  19. end
  20. else
  21. print("Username Incorrect!")
  22. sleep(2)
  23. os.shutdown()
  24. end
Advertisement
Add Comment
Please, Sign In to add comment