wasliebob

Security

Jul 30th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. term.clear()
  2.  
  3. while true do
  4.  
  5. s = peripheral.wrap("bottom")
  6.  
  7. event, username = os.pullEvent("player")
  8. if(event == "player" and username == "wasliebob") then
  9. s.say("Welcome Wasliebob", 5)
  10. redstone.setOutput("right", true)
  11. sleep(2)
  12. redstone.setOutput("right", false)
  13. os.run({}, "startup")
  14.  
  15. else if(event == "player" and username == "99kevin11") then
  16. s.say("Welcome Kevin", 5)
  17. redstone.setOutput("right", true)
  18. sleep(2)
  19. redstone.setOutput("right", false)
  20. os.run({}, "startup")
  21.  
  22. else
  23. s.say("You are not allowed in here be happy that i didnt send my turtles at you!", 5)
  24. end
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment